Advertisement
iaretechnician

addactions.sqf

Mar 6th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.98 KB | None | 0 0
  1.     waitUntil {(!isNil "PVDZE_plr_LoginRecord") || (!isNil "PVDZ_plr_LoginRecord")};   
  2.    
  3.     s_player_addrating = player addAction ["AddRating", "test.sqf", ["rating",""],0, false, true];
  4.     s_player_addrating = player addAction ["Add Units", "test.sqf", ["units",""],0, false, true];
  5.  
  6.         _model = ["Survivor2_DZ","Rocket_DZ","Rus_commander","rocker1"];
  7.         {
  8.         s_player_testing = player addAction [_x, "test.sqf",["model",_x], 0, false, true];
  9.         }foreach _model;
  10.        
  11.        
  12. //***********************************UTILITY********************************************
  13.         //YOU CAN CREATE A CUSTOM FUNCTION TO CALL VIA RADIO ALPHA (PRESS BACKSPACE - 0)
  14.         _this = createTrigger ["EmptyDetector", [967.76184, 1088.1219]];
  15.         _this setTriggerActivation ["ALPHA", "PRESENT", true];
  16.         _this setTriggerStatements ["this", "player addrating -10000; ", ""];
  17.         _trigger_0 = _this;
  18.        
  19.  
  20.         //ENABLE TELEPORT BY HOLDING LEFT ALT AND CLICKING ON MAP
  21.         player onMapSingleClick "if (_alt) then {player setPosATL _pos}";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement