From Liberty Unleashed Wiki
This is called when a vehicle is shot.
- function onClientVehicleShot( Vehicle vehicle, Player player, int weapon )
- vehicle - The vehicle that was shot
- player - The player that shot the vehicle.
- weapon - ID representing the type of weapon used to shoot the vehicle
This event does not handle return values.
This example will show a message to the client indicating which player shot his vehicle and with what weapon.
- function onClientVehicleShot( vehicle, player, weapon )
- Message(player.Name + " shot your " + GetVehicleName( vehicle ) + " with a " + GetWeaponName( weapon ) );
- Only gets triggered when the client is in a vehicle and is getting shot at by another player
- Molotovs and flamethrower both return a weapon ID of 9.
- Grenades and RPG return an ID 18