MrZig 0 Posted October 30, 2003 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! Share this post Link to post Share on other sites
KaRRiLLioN 0 Posted October 30, 2003 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 Share this post Link to post Share on other sites
MrZig 0 Posted October 30, 2003 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? Share this post Link to post Share on other sites
KaRRiLLioN 0 Posted October 30, 2003 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. Share this post Link to post Share on other sites