Skip to content

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
//---
	{
		return;
	}
	if (this.Armed())
	{
		if (Interface.CallHook("OnTrapDisarm", this, rpc.player) != null)
		{
			return;
		}
		if (this.Triggered())
		{
//---

Released under the MIT License.