CanNetworkTo
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void CanNetworkTo( BasePlayer instance, BasePlayer player )
{
Puts( "CanNetworkTo works!" );
}
Location
- BasePlayer::ShouldNetworkTo(BasePlayer player)
csharp
public override bool ShouldNetworkTo(BasePlayer player)
{
object returnvar = Interface.CallHook("CanNetworkTo", this, player);
if (returnvar is bool)
{
return (bool)returnvar;
}
if (player == this)
//---