Jump to content
Sign in to follow this  
-IT-Q-

Parachute script

Recommended Posts

ok at first the situation

if u disembark a hopper/plan about 200 meters, u have a parachute (just like everytime, no change), but if u do so beneath this height, the parachute should be removed and u shall fall straight down

so my friend wrote me an eventhandler and a script - but it doesnt work :/

player addEventHandler ["GetIn",{_this exec "getin.sqs"}]

getin.sqs

_unit = _this select 0

_position = _this select 1

? _position != "driver" : exit

_veh=vehicle _unit

? "ParachuteBase" counttype [_veh]==0 : exit

? getpos _unit select 2 > 200 : exit

_unit action ["EJECT",_veh]

deletevehicle _veh

regards

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  

×