Skip to content

CanPickupLock

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

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

Location

  • BaseLock::RPC_TakeLock(BaseEntity/RPCMessage rpc)
csharp
//---
	}
	if (!this.CanRemove)
	{
		return;
	}
	if (Interface.CallHook("CanPickupLock", rpc.player, this) != null)
	{
		return;
	}
	if (base.IsLocked())
	{
//---

Released under the MIT License.