Skip to content

OnVehicleHornPressed

Usage

  • No return behavior

Example Autogenerated

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

Location

  • VehicleModuleSeating::PlayerServerInput(InputState inputState, BasePlayer player)
csharp
//---
		{
			base.SetFlag(BaseEntity.Flags.Reserved8, flag, false, true);
		}
		if (flag)
		{
			Interface.CallHook("OnVehicleHornPressed", this, player);
			this.hornPlayer = player;
		}
	}
}

Released under the MIT License.