Advertisement
Guest User

fn_selfActions.sqf

a guest
Sep 11th, 2013
2,588
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. if((speed player <= 1) && cursorTarget isKindOf "CSJ_GyroC" && _canDo) then {
  2. if (s_player_deploybike6 < 0) then {
  3. s_player_deploybike6 = player addaction[("<t color=""#007ab7"">" + ("Re-Pack GyroCopter") +"</t>"),"spawnbike\bike6.sqf","",5,false,true,"", ""];
  4. };
  5. } else {
  6. player removeAction s_player_deploybike6;
  7. s_player_deploybike6 = -1;
  8. };
  9.  
  10. if((speed player <= 1) && cursorTarget isKindOf "TT650_Civ" && _canDo) then {
  11. if (s_player_deploybike5 < 0) then {
  12. s_player_deploybike5 = player addaction[("<t color=""#007ab7"">" + ("Upgrade to GyroCopter") +"</t>"),"spawnbike\bike5.sqf","",5,false,true,"", ""];
  13. };
  14. } else {
  15. player removeAction s_player_deploybike5;
  16. s_player_deploybike5 = -1;
  17. };
  18.  
  19. if((speed player <= 1) && cursorTarget isKindOf "TT650_Civ" && _canDo) then {
  20. if (s_player_deploybike4 < 0) then {
  21. s_player_deploybike4 = player addaction[("<t color=""#007ab7"">" + ("Re-Pack Motorcycle") +"</t>"),"spawnbike\bike4.sqf","",5,false,true,"", ""];
  22. };
  23. } else {
  24. player removeAction s_player_deploybike4;
  25. s_player_deploybike4 = -1;
  26. };
  27.  
  28. if((speed player <= 1) && cursorTarget isKindOf "Old_bike_TK_CIV_EP1" && _canDo) then {
  29. if (s_player_deploybike3 < 0) then {
  30. s_player_deploybike3 = player addaction[("<t color=""#007ab7"">" + ("Upgrade to Motorcycle") +"</t>"),"spawnbike\bike3.sqf","",5,false,true,"", ""];
  31. };
  32. } else {
  33. player removeAction s_player_deploybike3;
  34. s_player_deploybike3 = -1;
  35. };
  36.  
  37. if((speed player <= 1) && cursorTarget isKindOf "Old_bike_TK_CIV_EP1" && _canDo) then {
  38. if (s_player_deploybike2 < 0) then {
  39. s_player_deploybike2 = player addaction[("<t color=""#007ab7"">" + ("Re-Pack Bike") +"</t>"),"spawnbike\bike2.sqf","",5,false,true,"", ""];
  40. };
  41. } else {
  42. player removeAction s_player_deploybike2;
  43. s_player_deploybike2 = -1;
  44. };
  45.  
  46. if((speed player <= 1) && _hasToolbox && _canDo) then {
  47. if (s_player_deploybike < 0) then {
  48. s_player_deploybike = player addaction[("<t color=""#007ab7"">" + ("Deploy Bike (will loose Toolbox)") +"</t>"),"spawnbike\bike.sqf","",5,false,true,"", ""];
  49. };
  50. } else {
  51. player removeAction s_player_deploybike;
  52. s_player_deploybike = -1;
  53. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement