Home   Help Search Login Register  

Author Topic: What code do i use for my guys to get in....  (Read 1282 times)

0 Members and 1 Guest are viewing this topic.

Phantom

  • Guest
What code do i use for my guys to get in....
« 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!

Kaliyuga

  • Guest
Re:What code do i use for my guys to get in....
« Reply #1 on: 07 Sep 2002, 22:23:52 »
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

DeusRich

  • Guest
Re:What code do i use for my guys to get in....
« Reply #2 on: 08 Sep 2002, 02:50:26 »
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...

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:What code do i use for my guys to get in....
« Reply #3 on: 08 Sep 2002, 07:10:46 »
"_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 :)

SEAL84

  • Guest
Re:What code do i use for my guys to get in....
« Reply #4 on: 08 Sep 2002, 19:14:00 »
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.