OnTrapDisarm
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnTrapDisarm( Landmine instance, BasePlayer player )
{
Puts( "OnTrapDisarm works!" );
}
Location
- Landmine::RPC_Disarm(BaseEntity/RPCMessage rpc)
csharp
//---
}
if (!this.Armed())
{
return;
}
if (Interface.CallHook("OnTrapDisarm", this, rpc.player) != null)
{
return;
}
base.SetFlag(BaseEntity.Flags.On, false, false, true);
if (UnityEngine.Random.Range(0, 100) < 15)
//---