Jump to content
Sign in to follow this  
magicpanda

Basic Jet Ejector Seat Script

Recommended Posts

I've got a very basic ejector seat script working while BI sort their stuff out. I so often get killed on Eject. This is safe.

Hoping someone with better scripting knowledge than my beginner shite can tidy it up, make it work better for all jets perhaps? :)

Make a jet call it jet1.

in the init

this addAction ["<t color='#FF6600'>EJECT</t>", "ejector.sqf", "", 0, false, false, "", "player IN jet1"];

ejector.sqf - This will fling you upwards at 50 metres per second and with a bit of forward momentum in the direction of travel.

player setPos [ getPos vehicle player select 0, getPos vehicle player select 1, (getPos vehicle player select 2) +5]; player setvelocity [80 * (sin (getdir vehicle player)), 80 * (cos (getdir vehicle player)),50];

Edited by Magicpanda

Share this post


Link to post
Share on other sites

Hi Magicpanda!

I've also just created an Addon (didn't see your forum post). Maybe you want to take a look at it:

http://forums.bistudio.com/showthread.php?175838-Jet-Ejection-Seat

The difficulties were that you get ejection in the correct direction if the plane has bank, for example, or if it is flying upwards down. You might take a look and tell me what you think about :)

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  

×