Home   Help Search Login Register  

Author Topic: Newbie help with chopper script  (Read 994 times)

0 Members and 1 Guest are viewing this topic.

Scoutpl

  • Guest
Newbie help with chopper script
« on: 29 Jul 2003, 23:03:16 »
I have searched FAQs and forums for hints, ideas and have tried a few but still cant get this to work.  I'm sure its something really basic, but hey, we have to start somewhere right?   ;D

I am trying to get Snyper's Land Choppers script to work in a mission I am building.  I am using mulitple helicopters, though they are all individually grouped with seperate waypoints, triggers, etc.  When it comes time to execute the land script the choppers all come to a hover above their landing waypoint and stop.  I also get an error message stating:

 "_x call getout" for each units crew _unit /#/ error unit type array, expected object, group

I think the error has something to do with me failing to add a unit name to the script or something.

Any ideas, hints, or good places to look for some would be greatly appreciated.

Thanks in advance.
« Last Edit: 29 Jul 2003, 23:03:43 by Scoutpl »

peter

  • Guest
Re:Newbie help with chopper script
« Reply #1 on: 29 Jul 2003, 23:12:23 »
i guess:
foreach not for each

and maybe better

units (crew _unit)
« Last Edit: 29 Jul 2003, 23:18:07 by peter »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Newbie help with chopper script
« Reply #2 on: 30 Jul 2003, 01:56:13 »
Well, somewhere in that line of script the game was expecting a unit or group and instead you gave it an array.

I'm guessing here, scripting in not my strong point, but try

"_x call getout" foreach crew _unit
Plenty of reviewed ArmA missions for you to play

peter

  • Guest
Re:Newbie help with chopper script
« Reply #3 on: 30 Jul 2003, 02:03:02 »
well, right, crew _unit is already array of units and no group ...