01.03.2016, 00:28
Hi,
I'm creating my first script to enable unoccupied vehicles getting damaged, in the same way as if there is a driver. Found few scripts, but they don't provide an actual car damage like when there is driver. So I've run some tests to get exact values, but found problem on how to check if vehicle is airplane, as same guns deal two different damage to cars and airplanes.
I need to check if vehicleid is equal to one from the airplane list:
How can I do this? Thanks in advance.
I'm creating my first script to enable unoccupied vehicles getting damaged, in the same way as if there is a driver. Found few scripts, but they don't provide an actual car damage like when there is driver. So I've run some tests to get exact values, but found problem on how to check if vehicle is airplane, as same guns deal two different damage to cars and airplanes.
I need to check if vehicleid is equal to one from the airplane list:
Код:
new AirVehID[] = {460, 476, 511, 512, 513, 519, 520, 553, 577, 592, 593, 417, 425, 447, 469, 487, 488, 497, 548, 563}; if(vehicleid == What to put here?)