OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Kyonic on 18 Sep 2002, 17:33:19

Title: How do i get troops to jump from a helicopter?
Post by: Kyonic on 18 Sep 2002, 17:33:19
i am making a mission and i need the men in one of the chopers to jump over this town how do i do it?
Title: Re:How do i get troops to jump from a helicopter?
Post by: Artak on 18 Sep 2002, 18:40:37
Hi Kyonic!

Type unitname action ["eject"] into a trigger's or waypoint's On Activation field and the jolly trooper will jump  :D
Title: Re:How do i get troops to jump from a helicopter?
Post by: LCD on 18 Sep 2002, 18:59:15
welcome 2 da forums Kyonic  ;D

LCD OUT
Title: Re:How do i get troops to jump from a helicopter?
Post by: Messiah on 18 Sep 2002, 19:01:54
sorry artak but thats not the full story...

what will happen is that the men will jump from the chopper - but then the chopper will land and wait for the men to get back in... you need to unassign the men from the chopper as well as making them eject.

the easiest way is to use a script (dont worry - they are easy)

get it from the editors depot (http://www.ofpec.com/editors/index.php) and look under code snippets and also FAQ

:thumbsup:
Title: Re:How do i get troops to jump from a helicopter?
Post by: Artak on 18 Sep 2002, 22:27:40
Ah yes. So it is LOL =)    Lucky thing we have this FAQ place..  ;D
Title: Re:How do i get troops to jump from a helicopter?
Post by: Mike on 19 Sep 2002, 02:38:47
make a script, put the following in:

Code: [Select]
;scriptname.sqs
UnassignVehicle playername
playername action ["eject",heliname]

then in the game, make a trigger with a radius over where u want him to unload, group the trigger to the heli with (F2)

in the triggers On Activation field type:

[] exec "scriptname.sqs"

---------------------------------------

or maybe u can put the:

UnassignVehicle playername; playername action ["eject",heliname]

in that triggers on activation instead of making the script..?