OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: DaRkmAn on 20 Oct 2002, 07:21:26

Title: Ejecting...
Post by: DaRkmAn on 20 Oct 2002, 07:21:26
Ejecting from a blackhawk when we enter a trigger, how can i do this? im on v1.85
Title: Re:Ejecting...
Post by: Messiah on 20 Oct 2002, 13:22:26
try looking in the:

editors depot (http://www.ofpec.com/editors/index.php)

or try:

searching (http://www.ofpec.com/yabbse/index.php?board=6;action=search)

there is a thread below this one about ejecting from a C130 - try and search before you ask, thats what the editors depot and search engine are there for.
Title: Re:Ejecting...
Post by: DaRkmAn on 20 Oct 2002, 21:24:17
i did search i didnt find anything that helped that why i asked.
Title: Re:Ejecting...
Post by: Messiah on 20 Oct 2002, 23:15:18
Code: [Select]
; Script name : parachute.sqs

_units = units group (_this select 0)
_helicopter = _this select 1
_i = 0
_Max = count _units
#Here
(_units select _i) action ["EJECT",_helicopter]
unassignvehicle (_units select _i)
_i=_i+1
~1
?_Max>_i:goto "Here"
exit


a script i picked up from the editors depot. execute it like this:

[groupleadername, choppername] exec "parachute.sqs"