How to equal value to constants from the list?
#1

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:
Код:
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?)
How can I do this? Thanks in advance.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)