Skip to content

OnTrapArm

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnTrapArm( BearTrap instance, BasePlayer player )
{
    Puts( "OnTrapArm works!" );
}

Location

  • BearTrap::RPC_Arm(BaseEntity/RPCMessage rpc)
csharp
//---
{
	if (this.Armed())
	{
		return;
	}
	if (Interface.CallHook("OnTrapArm", this, rpc.player) != null)
	{
		return;
	}
	this.Arm();
}

Released under the MIT License.