Skip to content

OnEntityActiveCheck

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnEntityActiveCheck( BaseEntity ent, BasePlayer player, uint id, string debugName )
{
    Puts( "OnEntityActiveCheck works!" );
}

Location

  • BaseEntity/RPC_Server/IsActiveItem::Test(uint id, string debugName, BaseEntity ent, BasePlayer player)
csharp
//---
	}
	if (ent.net == null || player.net == null)
	{
		return false;
	}
	object returnvar = Interface.CallHook("OnEntityActiveCheck", ent, player, id, debugName);
	if (returnvar is bool)
	{
		return (bool)returnvar;
	}
	if (ent.net.ID == player.net.ID)
//---

Released under the MIT License.