Jump to content
Sign in to follow this  
acat0970

Preventing parachute when ejecting

Recommended Posts

i was wondering if there was a way to script a parachute not to open when you eject from a helicopter or plane because im trying to make a mission with a parachute failure.

if any one can help that would be appreciated thanks!!

Share this post


Link to post
Share on other sites

You can try to script an eject from the parachute, and say the strings broke.

Cant remember the exact syntax ATM, but im sure someone could help.

Share this post


Link to post
Share on other sites

It is possible with a simple script. Idea is to attach script to the vehicle with adding event handler get out. Then within the script capturing the player and his vehicle [new deployed parachute] and delete it.

in the planes/heli init put this code to execute script

this addEventHandler ["GetOut",{_my_custom_ejection = _this execVM "my_ejection.sqf"}];

and then in your mission add a my_ejection.sqf file [script] with something like this

_vehicle = _this select 0;

_soldier = _this select 2;

sleep 0.05;

_parachute = vehicle _soldier;

_soldier action ["eject", _parachute];

WaitUntil {vehicle _soldier != _parachute};

deletevehicle _parachute;

hope this is what you are looking for.

Edited by John_Spartan

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  

×