Skip to content

OnDieselEngineToggle

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

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

Location

  • DieselEngine::EngineSwitch(BaseEntity/RPCMessage msg)
csharp
[BaseEntity.RPC_Server, BaseEntity.RPC_Server.IsVisible(6f)]
public void EngineSwitch(BaseEntity.RPCMessage msg)
{
	if (Interface.CallHook("OnDieselEngineToggle", this, msg.player) != null)
	{
		return;
	}
	if (msg.read.Bit())
	{
//---

Released under the MIT License.