OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: dalton on 24 Jan 2004, 19:57:49
-
in my mission i have ppl in the cargo of a plane. is there a way for ppl 2 parachute out of the plane once it hits a trigger? btw u can control these ppl
-
An classic ;D: LustyPoohs Ejecting a Group from a Helicopter (http://www.ofpec.com/editors/resource_view.php?id=194)
execute the script in the triggers on activation box, eg. [] exec "scriptname.sqs" ...or sumthin like that ;) :P
-
never mind...
Bizon beat me to it :)
-
for the tut: when i went thru the trigger it gave me a message in the top left corner of my screen that said: _vehicle=_this select 1 #: Error Zero Divisor
-
nm but i want it 2 eject automatically. not just wait 4 u 2 eject. how would i do that?
-
I guess u didn't run the example mission or check the description in the script :hmm:...
Well anyway, heres the corect syntax: [mygrp,heli1] exec "groupeject.sqs"
Where:
mygrp is the name of your group. Name the group by enterin' whateverNameULike=group this in the initfield of the group leader.
and heli1 is the name of the chopper... make damned shure that the chopper dont fly to low, using flyInHeight command, othervise you get killed before the chute opens.
All details are located in the script itself or the Xample mission. ;)
-
nm but i want it 2 eject automatically. not just wait 4 u 2 eject. how would i do that?
How do you mean ???... the script that was provided does just that... or did you mean u wanted to bailout when the chopper gets hit or WHAT... explain. :-\
-
i want it to automatically parachute u out when u hit a trigger or somethin. with that script it just sits and waits for u 2 eject manually, then just flies away.
-
thats also the same thing that happens in the example mission.
-
nm i got it workin. i 4got 2 group the ppl i wanted 2 eject.
thnx alot peoples of ofpec