Advertisement
ComfySeven4

refreshactions.sqf

Jan 30th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 2.57 KB | None | 0 0
  1. if (isDedicated) exitWith {};
  2. waitUntil {!isNull player};
  3.  
  4. removeAllActions player;
  5.  
  6. player addAction ["<t color='#33AAFF'>Lift vehicle</t>", "scripts\lift.sqf", nil, 10, true, true, "", "call CUP_checkLift"];
  7. player addAction ["<t color='#33AAFF'>Drop vehicle</t>", "scripts\drop.sqf", nil, 10, true, true, "", "call CUP_checkDrop"];
  8.  
  9. removeAllActions MedicOfficer;
  10. MedicOfficer addAction["<t color='#33AAFF'>Fully heal</t>", "heal.sqf"];
  11.  
  12. if (vAllowVD == 1) then {
  13.     player addAction["<t color='#33AAFF'>View distance</t>",TAWVD_fnc_openTAWVD,nil,0,false];
  14. };
  15.  
  16. if (vSupplyEnable == 1) then {
  17.     player addAction["<t color='#33AAFF'>Call resupply drop</t>", "callsupplydrop.sqf",nil,1,false];
  18. };
  19.  
  20. if (vBunkerEnable == 1) then {
  21.     _fobComposition = [getPos player, getDir player, "Compositions\fob.sqf", true] execVM "fn_objectsMapper.sqf";
  22.     player addAction["<t color='#33AAFF'>Construct Bunker</t>", "_fobComposition"];
  23. };
  24.  
  25. if (vSpawnEvac == 1) then {
  26.     if (vEvacSpawned) then {
  27.         removeAllActions MainEVAC;
  28.         MainEVAC addAction["<t color='#FF3C3C'>EVAC to base</t>", "playerevac.sqf"];
  29.     }; 
  30. };
  31.  
  32. if (vHaloEnable == 1) then {
  33.     removeAllActions HaloFlag;
  34.     HaloFlag addAction["<t color='#33AAFF'>HALO jump</t>", "ATM_airdrop\atm_airdrop.sqf"];
  35. };
  36.  
  37. if (vAllowRecruitingAI == 1) then {
  38.     removeAllActions RecruitOfficer;
  39.     RecruitOfficer addAction["<t color='#FF3C3C'>Recruit rifleman</t>", "recruitrifleman.sqf"];
  40.     RecruitOfficer addAction["<t color='#FF3C3C'>Recruit medic</t>", "recruitmedic.sqf"];
  41.     RecruitOfficer addAction["<t color='#FF3C3C'>Recruit grenadier</t>", "recruitgrenadier.sqf"];
  42.     RecruitOfficer addAction["<t color='#FF3C3C'>Recruit autorifleman</t>", "recruitautorifleman.sqf"];
  43.     RecruitOfficer addAction["<t color='#FF3C3C'>Recruit rifleman AT</t>", "recruitriflemanat.sqf"];
  44.     RecruitOfficer addAction["<t color='#FF3C3C'>Recruit missile specialist AA</t>", "recruitmissilespecialistaa.sqf"];
  45.     RecruitOfficer addAction["<t color='#FF3C3C'>Recruit missile specialist AT</t>", "recruitmissilespecialistat.sqf"];
  46.     RecruitOfficer addAction["<t color='#FF3C3C'>Recruit marksman</t>", "recruitmarksman.sqf"];
  47.     RecruitOfficer addAction["<t color='#FF3C3C'>Recruit sniper</t>", "recruitsniper.sqf"];
  48.     RecruitOfficer addAction["<t color='#FF3C3C'>Recruit spotter</t>", "recruitspotter.sqf"];
  49.     RecruitOfficer addAction["<t color='#D03CFF'>Delete all AI recruits</t>", "deleterecruitsai.sqf"];
  50. };
  51.  
  52. if (!isNil "FriendlyCaptive") then {
  53.     removeAllActions FriendlyCaptive;
  54.     FriendlyCaptive addAction["<t color='#11ffff'>Secure Prisoner</t>", "rescuecaptive.sqf",nil,1,false];
  55. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement