OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Phantom on 07 Sep 2002, 20:29:28
-
I'm stuck!
I need to know what to put in the activation field of a waypoint so that my guy's get into a chopper.
My guy's are RF6, the chopper is CH6
Please, I'm desperate!
-
unitname moveincargo vehiclename will move them instantly into position.....
or you can use the assignascargo command , but the syntax on that one eludes me at the moment
-
ok - you say guy's - so that means plural - so is RF6 the group name (assigned with: 'RF6 = group this' in officers init)
i am going to assume it is....
so, you want them to get in the chopper, so, on a waypoint you can give them a get in waypoint - simple enough. The syntax for the assignascargo is:
"_x assignascargo CH6" foreach units RF6
in an init field so that they know whenever they get in they get in the back... then - when you want them to get in
"_x ordergetin = true" foreach units RF6
hopefully that should have solved your probs...
-
"_x ordergetin = true" foreach units RF6
Careful... that's not quite right ;)
The syntax for the ordergetin command is:
array of units ordergetin boolean
Not:
unit ordergetin boolean
So... this means that if you want to order many units (ie. a group), you would use:
(units RF6) ordergetin true
As (units RF6) is an array. A foreach command will make OFP throw an error message at you ;)
Also, if you want to order just one unit to get in, you must use:
[ unit ] ordergetin true
The square brackets make it an array, even if there is only one unit in it... happy editing :)
-
Or you could use
"_x assignascargo ch6" foreach units rf6.
And Deusrich, there's no need to define a group in the leader's init field. A foreach command naming the leader works just fine. Saves you the extra line.