OnQuarryToggled
Usage
- No return behavior
Example Autogenerated
csharp
private void OnQuarryToggled( MiningQuarry miningQuarry, BasePlayer player )
{
Puts( "OnQuarryToggled works!" );
}
csharp
private void OnQuarryToggled( )
{
Puts( "OnQuarryToggled works!" );
}
csharp
private void OnQuarryToggled( )
{
Puts( "OnQuarryToggled works!" );
}
Location
- EngineSwitch::StartEngine(BaseEntity/RPCMessage msg)
- EngineSwitch::StartEngine(BaseEntity/RPCMessage msg)
- EngineSwitch::StopEngine(BaseEntity/RPCMessage msg)
- EngineSwitch::StopEngine(BaseEntity/RPCMessage msg)
csharp
//---
{
return;
}
miningQuarry.EngineSwitch(true);
}
Interface.CallHook("OnQuarryToggled", miningQuarry, msg.player);
}
csharp
//---
if (!miningQuarry || Interface.CallHook("OnQuarryToggle", miningQuarry, msg.player) != null)
{
return;
}
miningQuarry.EngineSwitch(true);
Interface.CallHook("OnQuarryToggled", miningQuarry, msg.player);
}
csharp
//---
if (!miningQuarry || Interface.CallHook("OnQuarryToggle", miningQuarry, msg.player) != null)
{
return;
}
miningQuarry.EngineSwitch(false);
Interface.CallHook("OnQuarryToggled", miningQuarry, msg.player);
}
csharp
//---
{
return;
}
miningQuarry.EngineSwitch(false);
}
Interface.CallHook("OnQuarryToggled", miningQuarry, msg.player);
}