Results 1 to 5 of 5

Thread: Get crew?

  1. #1
    Sergeant Major
    Join Date
    Dec 24 2002
    Location
    BC, Canada
    Posts
    1,428
    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!

  2. #2
    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
    _____________________________________________

  3. #3
    Sergeant Major
    Join Date
    Dec 24 2002
    Location
    BC, Canada
    Posts
    1,428
    Author of the Thread
    Hmm?

    So to detect if there is no crew, you'd put something like

    Crew _helo < 0 ?

    I&#39;m real new to scripting, allways been a trigger happy person.

    Can you give me an example?

  4. #4
    Crew is an array, so you can do a count of the array like so:

    ?Count Crew _helo <= 0

    If it&#39;s true,then there&#39;s no crew in the helo.

  5. #5
    Sergeant Major
    Join Date
    Dec 24 2002
    Location
    BC, Canada
    Posts
    1,428
    Author of the Thread
    Thanks&#33;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •