OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: dalton on 24 Jan 2004, 19:57:49

Title: auto parachuting?
Post 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
Title: Re:auto parachuting?
Post by: Burn on 24 Jan 2004, 20:06:14
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
Title: Re:auto parachuting?
Post by: h- on 24 Jan 2004, 20:08:56
never mind...

Bizon beat me to it   :)
Title: Re:auto parachuting?
Post by: dalton on 24 Jan 2004, 20:43:31
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
Title: Re:auto parachuting?
Post by: dalton on 24 Jan 2004, 21:06:11
nm but i want it 2 eject automatically. not just wait 4 u 2 eject. how would i do that?
Title: Re:auto parachuting?
Post by: Burn on 24 Jan 2004, 21:07:10
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. ;)
Title: Re:auto parachuting?
Post by: Burn on 24 Jan 2004, 21:10:50
Quote
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. :-\
Title: Re:auto parachuting?
Post by: dalton on 25 Jan 2004, 15:27:51
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.
Title: Re:auto parachuting?
Post by: dalton on 25 Jan 2004, 15:30:02
thats also the same thing that happens in the example mission.
Title: Re:auto parachuting?
Post by: dalton on 25 Jan 2004, 15:45:36
nm i got it workin. i 4got 2 group the ppl i wanted 2 eject.
thnx alot peoples of ofpec