OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Serial Killer on 07 Apr 2005, 19:07:23

Title: Squad in the vehicle by ONE command?
Post by: Serial Killer on 07 Apr 2005, 19:07:23
I forgot this command, so what was it..? I remember, that I have to write squad's leader's Init something like Squad1=squadthis. I don't remember anything else :-[
Title: Re:Squad in the vehicle by ONE command?
Post by: macguba on 07 Apr 2005, 20:21:20
grp1 = group this

What are you trying to do, exactly?
Title: Re:Squad in the vehicle by ONE command?
Post by: Serial Killer on 07 Apr 2005, 20:42:03
I try to move a squad in to helicopter by ONE command. I don't want to write that moveInCargo thing to every soldier. Understand?
Title: Re:Squad in the vehicle by ONE command?
Post by: Killswitch on 07 Apr 2005, 20:52:46
This moves all soldiers of a squad into the cargo of a vehicle named somevehicle:
Code: [Select]
{_x moveInCargo somevehicle} forEach units this(Put it into the init line of the leader of the group)
Title: Re:Squad in the vehicle by ONE command?
Post by: Raptorsaurus on 07 Apr 2005, 23:31:49
Code: [Select]
{_x moveInCargo truck1} forEach units group thisIf you use the above you can put it in the init field of ANY unit in the group.  Change "truck1 to the name of the vehicle you are using.