OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Colossos on 19 May 2005, 12:52:16
-
In my mission my team gets in a transport truck, drive a bit, get out and go further on foot. Further in the mission they have to go back on ANOTHER truck (i used now twice the "get in" waypoint) but only the driver gets in??? Some guys are running ALL THE WAY BACK to the first truck i used???? How come??
Thx
I looked in the faq but didnt immediatly find my answer so I posted this. You may delete this topic tomorrow if its in the faq but pls tell me where.
-
i suspect you need to use the assignas (http://www.ofpec.com/editors/comref.php?letter=A#assignAsCargo) command...
-
I have found an easier way to change transport trucks. The problem is that if your team goes on a transport (get in) and than get out and later if you are taking another transport truck your teammate(s) will also want use the first transport truck.
I solved it by setting setdammage 1 to the first transport truck after you get out (preferably when no one sees the first truck anymore). Than you shouldnt have a problem assigning your team to the second truck.
I know it isnt the right solution but it works and I tested it more than once.
-
Try an unAssign command.
-
Oops, stupid me. I didnt think of that.
Also do you know how you can command a whole group to allowfleeing 0. I feel kinda dumb that i have to set "this allowfleeing 0" for every unit in a group!
-
I have a suspicion that allowFleeing is a group command anyway, so you just need to do it for the group leader.
If not,
"allowFleeing _x" forEach units grp1
Syntax not guaranteed.