Just wondering how I can remove a certain amount of fuel from a large list of vehicles. Since there is no 'getFuel' command so I can't get the amount of fuel and then remove say 0.30 fuel so just wondering are there any other ways of doing this?
Or am I just missing something really obvious which is most likely since I have not done much scripting for ArmA in a long time so I'm a tad rusty.
HOME
Reply With Quote
. Essentially the script checks the mags the unit has, and this returns an array. I've assumed that any given unit is at max going to have 4 different magazines on him at any given time - if this is wrong, then you just need to add more mag selections in the script. The script then removes all these magazines and then adds a set number back again (as defined by _count). Not exactly 50%, but a similiar end result.

