Jump to content
Sign in to follow this  
MrZig

Get crew?

Recommended Posts

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

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×