OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Shodan on 27 May 2004, 21:25:54

Title: getting out of chopper
Post by: Shodan on 27 May 2004, 21:25:54
 ::)Here I go again. I must be a real nuisance.

I want my player character to climb out a chopper. This is easy, I just tell the chopper (HELO1) to move somewhere and 'unload transport'. But what if I have another guy inside, like a commander who talks to you? I don't want him to get out as well.

HELO1 flyinheight 0; ALPHA1 leavevehicle HELO1

This was supposed to allow only the player (ALPHA1) to get out, but instead the chopper crew gets out and leaves me inside the chopper with the rotors going.

I placed the above script in the on activation field on a move waypoint. the chopper flys in fine, lands fine, but then the pilot gets out and abandons me. Why I oughta :beat:

any help would be much appreciated

Title: Re:getting out of chopper
Post by: Clue on 27 May 2004, 21:47:31
In the 'On Activation' box of the waypoint try:

unassignVehicle player

or

unassignVehicle alpha1
Title: Re:getting out of chopper
Post by: macguba on 28 May 2004, 00:42:33
In theory, you don't need any code for this, just use waypoints.     The command doesn't have a getout waypoint so he stays in the chopper.    The player shouldn't have waypoints either (at least not ones that do anything) - he should just have orders to get out when the chopper lands.  

Choppers are a bit awkward so read the tute in the Ed Depot for some tips.    A land command usually helps.
Title: Re:getting out of chopper
Post by: StonedSoldier on 28 May 2004, 11:10:42
heliname land "get out" is always nice, makes the helli hover a few feet off the ground, good for emergency evac, choppers usually fanny around something rotten when it comes to landing
Title: Re:getting out of chopper
Post by: Dubieman on 29 May 2004, 00:17:10
Maybe make the chopper's waypoint a unload waypoint. Then make the players or whoever is affected have a get out waypoint that's syched to the unload waypoint.

Maybe...... :P