Jump to content
Sign in to follow this  
deltagamer

Parachute and useractions - Cut Parachute?

Recommended Posts

Hopefully someone can help me out with this,

I've been trying to get useractions to work with parachutes for a while now as that would be the best way for me to get a 'Cut Parachute' Feature that I've been looking to achieve for some time now. I'm hoping to get the same effect as ACE2 by giving the user the ability to cut their parachute whenever it is deployed. What would be the best way for me to do this and if anyone knows how, what would I do to get it working.

Here's what I tried:

This is my useraction

class UserActions
{
class cutParachute
{
	displayName= "<t color='#FF0000'>Cut Parachute</t>"; //Red
	displayNameDefault = "";
	position="";
	radius=20;
	onlyForplayer=true;
	condition="(player == (driver this) && (alive this))";
	statement="this call DEGA_fnc_cutParachute";
	priority=15;
}; 			
};

And this is my function

_Parachute = _this select 0;
_caller = _this select 1;

moveOut _caller;
deleteVehicle _Parachute;
_caller allowDamage true;

I've found this thread from '06 which seems to show that parachutes don't support AddActions, hopefully this still isn't the case. Would anyone know how to help me out with my issue?

http://forums.bistudio.com/showthread.php?47117-parachutes-and-addAction

Share this post


Link to post
Share on other sites

Try useraction f.e. User action 5 (have to bind it in controls)

[] spawn 
                    {
                    waitUntil {inputAction "User5" > 0};  
                    hint "Cutting parachute";
//                   call your function to cut parachute here
                    };

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  

×