OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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?
-
Hi Kyonic!
Type unitname action ["eject"] into a trigger's or waypoint's On Activation field and the jolly trooper will jump :D
-
welcome 2 da forums Kyonic ;D
LCD OUT
-
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:
-
Ah yes. So it is LOL =) Lucky thing we have this FAQ place.. ;D
-
make a script, put the following in:
;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..?