Jump to content
Sign in to follow this  
Moon_chilD

Teleport into a flying Plane

Recommended Posts

Hey guys,

for a mission I would like to have a plane flying above Altis.

Know I want to be able to teleport into the gunner seat (or pilot) of that plane from the ground. (Via Scroll menu)

How could I do that?

Many Greetings

Moony

Share this post


Link to post
Share on other sites

event handler on respawn to add an addaction (or if you dont want it on respawn, just add it once at the start, no event handler). In the add action, use the moveInDriver or moveInGunner for the specified aircraft.

Share this post


Link to post
Share on other sites

or you could set the jet to playable and switch to the plane with the teamswitch hotkey (default: U)

Share this post


Link to post
Share on other sites

@flyinpenguin: I don't want it on respawn. It should be within a mission. The player then scrolls on a laptop and gets the action to get in the plane.

could you please get more detailed? @.@ (I never worked wit an event handler >.<")

@Grumpy Old Man: The plane - if possible - shouldn't be a playable unit!

Share this post


Link to post
Share on other sites

Uh so you want to control the plane but don't want it to be playable?

Can you be a bit more specific?

Share this post


Link to post
Share on other sites

Do be a 100% true, I just want to sit in the back/copilot but I won't actually fly it ^^

Share this post


Link to post
Share on other sites

I should have said thats it is an addon plane. It shouldn't matter anyways! ^^

Share this post


Link to post
Share on other sites

this addAction ["Teleport to plane", {player moveInDriver Plane1;}];

Add this to your laptop's init. Note that you must name the plane "Plane1" for this to work. I only wrote this quickly so it might not define Plane1 correctly or be able to use player. Let me know if it works or not.

This is to fly the plane. Dependant on whether you want to sit in the back of the plane, then use whatever function necessary. If the seat availible is a gunner seat, then use moveInGunner instead. If its a passenger seat, use moveInCargo. If you are not sure, try moveInAny.

Edited by flyinpenguin

Share this post


Link to post
Share on other sites

It doesn't work. I tried that to before. It just doesn't do anything!

Share this post


Link to post
Share on other sites

this addAction ["Teleport to plane", {(_this select 1) moveInDriver Plane1;}];

but you would also have to first eject the pilot so we could do but you better want to make sure that that isnt a player xD.

this addAction ["Teleport to plane", {deleteVehicle (driver Plane1); (_this select 1) moveInDriver Plane1;}];

Another thing is if you want maybe this is a C-130 we could add the player to the "Back"

this addAction ["Teleport to plane", {(_this select 1) moveInCargo Plane1;}];

Share this post


Link to post
Share on other sites

Thanks alot, for the C-17 the last one works wonderful ^^

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×