OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Crazy_Ivan on 20 Jun 2003, 17:39:14
-
I need help I'm trying to make a script thats ejects a group from a truck.
The ejection part works fine but i can't unnasign the group from the vehicle.
They just climb back into the vehicle again.
The script
_grp = A_sqd
_vehicle = truck
_aunits = units _grp
_i = 0
_j = count _aunits
#Eject
(_aunits select _i) action ["EJECT",_vehicle]
UnassignVehicle (_anuits select _i)
_i=_i+1
~0.3
?_j>_i:goto "Eject"
exit
-
not sure, but would this work:
"unassignVehicle _x" forEach A_sqd
-
Crazy_Ivan,
Check out this post... It deals with a plane but answers what you are looking for and just apply it to your vehicle.
http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=7848;start=15 (http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=7848;start=15)
-
Thanks that helped, it works perfectly now. :) :)