Skip to content

OnLockerSwap

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnLockerSwap( Locker instance, int num, BasePlayer player )
{
    Puts( "OnLockerSwap works!" );
}

Location

  • Locker::RPC_Equip(BaseEntity/RPCMessage msg)
csharp
//---
	int num = msg.read.Int32();
	if (num < 0 || num >= 3)
	{
		return;
	}
	if (Interface.CallHook("OnLockerSwap", this, num, msg.player) != null)
	{
		return;
	}
	if (this.IsEquipping())
	{
//---

Released under the MIT License.