Jump to content
kvntvan

addaction condition when player is in a cockpit

Recommended Posts

Does anyone know if there is an addaction condition that checks if a player is piloting a jet/helicopter ?

 

this is what I have so far, just needs a condition

player addAction ["<t color=""#33f6ff"">" +format["Spawn Enemy Jets"],"jetspawn.sqf"    
    ,nil,0,false,true,"",
    "CONDITION GOES HERE",-1];

 

Share this post


Link to post
Share on other sites

@kvntvan,

Spoiler

null=[ player, "Enemy Fighters", 
"\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_connect_ca.paa", 
"\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_connect_ca.paa", 
"!isNull objectParent _this && objectParent _this isKindof ""PLANE""", "alive _this", {}, {}, {

systemChat "did it!";

}, {}, [], 2, 0, false, true] call BIS_fnc_holdActionAdd;

 


I'm gonna suggest a hold addAction but there's your condition.

Have fun!

  • Like 1

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

×