OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: cobra3 on 05 Oct 2003, 22:51:33

Title: I need the code for make soldiers get in a helicopter please...
Post by: cobra3 on 05 Oct 2003, 22:51:33
i cant remember the code that make soldiers automaticly be in the helicopter when the mission start...
maybe something like "Jack Loadin d cargo"...
i cant remmember exactly the code...

any help ??? ?
Title: Re:I need the code for make soldiers get in a helicopter please...
Post by: GrimMonkey on 05 Oct 2003, 23:09:31
SoldierName MoveInCargo ChopperName


Beware the GrimMonkey
Title: Re:I need the code for make soldiers get in a helicopter please...
Post by: Harkonin on 06 Oct 2003, 07:57:39
Or for an entire group "_x moveincargo heloname" foreach units squadname
Title: Re:I need the code for make soldiers get in a helicopter please...
Post by: revellion on 08 Oct 2003, 09:38:15
More Exactly "_x moveincargo heli" foreach units *LEADER OF GROUP*
Harkonin ;)
Title: Re:I need the code for make soldiers get in a helicopter please...
Post by: Killswitch on 08 Oct 2003, 15:35:37
And before this escalates... you're actually both right in your respective uses of the units command - it takes either a unit or the name of a group as a parameter.

To clarify the original question: if you want a certain group to be loaded in the back of a helo on mission start, put this in the init field of, say, the group leader:
Code: [Select]
"_x moveInCargo heloname" forEach units this

Title: Re:I need the code for make soldiers get in a helicopter please...
Post by: Chris Death on 08 Oct 2003, 15:51:10
And to support what Killswitch said, check this out (last reply
by me):

http://www.ofpec.com/yabbse/index.php?board=7;action=display;threadid=13127

~S~ CD