Erm, can you check if there are men in your heli?
So if there are men in it, it doesn't exec the rest of the script by going to the loop right above it?
Can someone give me the correct syntax for a script? Thanks!
Erm, can you check if there are men in your heli?
So if there are men in it, it doesn't exec the rest of the script by going to the loop right above it?
Can someone give me the correct syntax for a script? Thanks!
Crew _helo (whatever your variable name is)
will give you an array with the soldiers in the chopper
Driver _helo is the pilot
Gunner _helo is the gunner
Crew will include the gunner and pilot
Crew _helo - Driver _helo - Gunner _helo
will give you the crew without the driver and gunner, i.e. those in as cargo
_____________________________________________
Visit the BootCamp ArmA 2 CO server: 66.239.221.141
Bandwidth: 20 mbps
Hardware: HP DL360G5 Dual-Core Xeon @ 3Gz /2GB RAM
_____________________________________________
Hmm?
So to detect if there is no crew, you'd put something like
Crew _helo < 0 ?
I'm real new to scripting, allways been a trigger happy person.
Can you give me an example?
Crew is an array, so you can do a count of the array like so:
?Count Crew _helo <= 0
If it's true,then there's no crew in the helo.
Thanks!