OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Siber Fox on 09 Nov 2002, 23:13:53

Title: stupid parachute
Post by: Siber Fox on 09 Nov 2002, 23:13:53
How do you make guys jump from a Chinook?

and how do you make the chinook disapear after they jump?
Title: Re:stupid parachute
Post by: silent1 on 09 Nov 2002, 23:19:58
Download a script from the Editor's section, on your toolbar. It'll tell you what to do with it.
Title: Re:stupid parachute
Post by: Wolfrug on 10 Nov 2002, 10:01:27
same way as any other chopper ;) with the possible exception of that you can have more groups in a chinook...oh well, why not create a separate chinook ejection script. Try this one:

_chop= _this select 0
_fullcrew= count crew _chop

#JumpLoop
~1
?_fullcrew == 0 : exit
_jump= crew _chop select _fullcrew
?_jump == driver _chop : _fullcrew=_fullcrew - 1; goto "JumpLoop"
?_jump == gunner _chop : _fullcrew=_fullcrew - 1; goto "JumpLoop"
_jump action["EJECT", _chop]
_jump unAssignVehicle _chop
_fullcrew= _fullcrew - 1
goto "JumpLoop"

Or somesuch ;) Now everyone 'xcept the gunner & the driver should eject :D Called [chopperName] "scriptName.sqs"

::) I've got too much time on my hand...and if this somehow fouls up, just go to the editor's depot and the snippets section and find yourself a normal ejection script :D

Wolfrug out.
Title: Re:stupid parachute
Post by: rancor_man67 on 10 Nov 2002, 13:03:28
there is a simple command for it in the triggers INT field, but i fogot! I used it in a mission once and it worked well.

I think its  <unit name> eject<chopper name>"eject"

Or it might be <unit name> eject "eject"

Rancor.
Title: Re:stupid parachute
Post by: JFK on 10 Nov 2002, 14:57:03
unitname action ["eject", "nameofchopper"]
Title: Re:stupid parachute
Post by: JFK on 10 Nov 2002, 14:57:37
i think  ::)
Title: Re:stupid parachute
Post by: Siber Fox on 10 Nov 2002, 19:25:11
Thanks everyone. I got it now. :)
Title: Re:stupid parachute
Post by: dreaming_adam on 12 Nov 2002, 20:55:27
go to the editing section of this site, CODE SNIPPETS, and you will find an ejection script to eject all units in the helo.. Then to delete the helo, use this comment

DELETEVEHICLE helo

helo being the name of the helo.

cheers

Adam