Skip to content

OnSensorDetect

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnSensorDetect(  )
{
    Puts( "OnSensorDetect works!" );
}

Location

  • HBHFSensor::CountDetectedPlayers()
csharp
//---
	{
		DebugDrawSensor(vector);
	}
	foreach (BaseEntity entityContent in myTrigger.entityContents)
	{
		if (!(entityContent is BasePlayer basePlayer) || Interface.CallHook("OnSensorDetect", this, basePlayer) != null || basePlayer == null || basePlayer.IsDead() || basePlayer.IsSleeping() || !basePlayer.isServer)
		{
			continue;
		}
		if (!flag)
		{
//---

Released under the MIT License.