CanDestroyLock
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void CanDestroyLock( BasePlayer player, ModularCar instance, BaseVehicleModule viaModule )
{
Puts( "CanDestroyLock works!" );
}
Location
- ModularCar::PlayerCanDestroyLock(BasePlayer player, BaseVehicleModule viaModule)
csharp
public bool PlayerCanDestroyLock(BasePlayer player, BaseVehicleModule viaModule)
{
object returnvar = Interface.CallHook("CanDestroyLock", player, this, viaModule);
if (returnvar is bool)
{
return (bool)returnvar;
}
return this.CarLock.PlayerCanDestroyLock(viaModule);
//---