OnSensorDetect
Usage
- No return behavior
Example Autogenerated
csharp
private void OnSensorDetect( )
{
Puts( "OnSensorDetect works!" );
}
Location
- HBHFSensor::UpdatePassthroughAmount()
csharp
//---
{
BuildingPrivlidge buildingPrivilege = this.GetBuildingPrivilege();
foreach (BaseEntity current in this.myTrigger.entityContents)
{
BasePlayer basePlayer = current as BasePlayer;
if (basePlayer != null && Interface.CallHook("OnSensorDetect", this, basePlayer) == null)
{
bool flag = buildingPrivilege != null && buildingPrivilege.IsAuthed(basePlayer);
if ((!flag || this.ShouldIncludeAuthorized()) && (flag || this.ShouldIncludeOthers()) && current.IsVisible(base.transform.position + base.transform.forward * 0.1f, 10f) && basePlayer != null && basePlayer.IsAlive() && !basePlayer.IsSleeping() && basePlayer.isServer)
{
this.detectedPlayers++;
//---