OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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 :-[
-
grp1 = group this
What are you trying to do, exactly?
-
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?
-
This moves all soldiers of a squad into the cargo of a vehicle named somevehicle:
{_x moveInCargo somevehicle} forEach units this(Put it into the init line of the leader of the group)
-
{_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.