OnLockRemove
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnLockRemove( ModularCar carOccupant, BasePlayer player )
{
Puts( "OnLockRemove works!" );
}
Location
- ModularCarGarage::RPC_RequestRemoveLock(BaseEntity/RPCMessage msg)
csharp
//---
}
if (!this.carOccupant.CarLock.HasALock)
{
return;
}
if (Interface.CallHook("OnLockRemove", this.carOccupant, msg.player) != null)
{
return;
}
this.carOccupant.CarLock.RemoveLock();
Effect.server.Run(this.addRemoveLockEffect.resourcePath, this, 0u, Vector3.zero, Vector3.zero, null, false, null);
//---