OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 456820 on 07 Aug 2005, 12:53:29
-
ive got some mission where your in a truck and i ant everyone to get out without using transport unload waypoints so use the action eject to get the player out and ussasign commands
but the players is ejected out but the rest of the men just stay in the truck and you have to manually get them out whilst your getting hsot at wich is a pain
so how can i make all men in a truck disembark without waypoints ?
-
Why you don't add an action to the player which
will execute an 'eject-all-group' script ;)
~S~ CD
-
well do you man an action from his action menu if so thats not really what i want i just want every unit to eject from a truck onc it gets attacked ive got a script that runs when the truck comes under fire so i just need to get all nits out without a transport unload waypoint
-
Use the group eject script.
http://www.ofpec.com/editors/resource_view.php?id=195
-
@456820
You make me feel kind'a stupid that i have to answer
questions like this.
Why you then don't use exactly that script at the time
when it detects you're under attack, to make the eject_all_group
command?
"_x action [{eject}, vehicle _x]" forEach units group player
or forEach units from_whoever
~S~ CD
-
Un-assign them from the vehicle too.
-
"_x action [{eject}, vehicle _x]" forEach units group player
i shall have a go with that
-
Off course unassigning is important too, but by the mass of
your questions i'm sure it has been covered a few times
by some answers that eject requires unassign to not let
the loons try to board the vehicle again.
~S~ CD