OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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?
-
Download a script from the Editor's section, on your toolbar. It'll tell you what to do with it.
-
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.
-
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.
-
unitname action ["eject", "nameofchopper"]
-
i think ::)
-
Thanks everyone. I got it now. :)
-
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