OnEntityFromOwnerCheck
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnEntityFromOwnerCheck( BaseEntity ent, BasePlayer player, uint id, string debugName )
{
Puts( "OnEntityFromOwnerCheck works!" );
}
Location
- BaseEntity/RPC_Server/FromOwner::Test(uint id, string debugName, BaseEntity ent, BasePlayer player)
csharp
//---
}
if (ent.net == null || player.net == null)
{
return false;
}
object returnvar = Interface.CallHook("OnEntityFromOwnerCheck", ent, player, id, debugName);
if (returnvar is bool)
{
return (bool)returnvar;
}
return ent.net.ID == player.net.ID || !(ent.parentEntity.uid != player.net.ID);
//---