Advertisement
iaretechnician

test.sqf

Mar 6th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.56 KB | None | 0 0
  1. _command = (_this select 3)select 0;
  2. _model = (_this select 3)select 1;
  3.  
  4.  
  5.     if (_command == "rating") then {
  6.         player addrating -10000;
  7.         _west = createcenter west;
  8.         _wgroup = creategroup _west;
  9.         [player] joinSilent grpNull;
  10.         [player] joinsilent _wgroup;
  11.         hintsilent format["RATING %1, SIDE %2",rating player, side player];
  12.  
  13.         };
  14.    
  15.     if (_command == "units") then {
  16.        
  17.         _this = createCenter east;
  18.         _center_0 = _this;
  19.  
  20.  
  21.  
  22.         _group_1 = createGroup _center_0;
  23.         _pos = getpos player;
  24.         _unit_1 = objNull;
  25.         if (true) then
  26.         {
  27.           _this = _group_1 createUnit ["TK_Soldier_AR_EP1", [(_pos select 0)+30,_pos select 1,0], [], 0, "CAN_COLLIDE"];
  28.           _unit_1 = _this;
  29.           _this setUnitAbility 0.60000002;
  30.           if (true) then {_group_1 selectLeader _this;};
  31.         };
  32.  
  33.         _unit_2 = objNull;
  34.         if (true) then
  35.         {
  36.           _this = _group_1 createUnit ["TK_Soldier_AR_EP1", [(_pos select 0)+32,_pos select 1,0], [], 0, "CAN_COLLIDE"];
  37.           _unit_2 = _this;
  38.           _this setUnitAbility 0.60000002;
  39.           if (false) then {_group_1 selectLeader _this;};
  40.         };
  41.  
  42.                
  43.         _group1 setCombatMode "YELLOW";
  44.         _group1 setBehaviour "AWARE";
  45.         hintsilent  "2 EAST units were spawned 35m from you";
  46.             };
  47.  
  48.     if (_command == "model") then {
  49.         _model call player_switchModel;
  50.         sleep 5;
  51.         diag_log "**************";
  52.         diag_log format["TEST: rating is %1, side is %2 and the skin is %3",rating player,side group player, _model];
  53.         diag_log "**************";
  54.         hintsilent format["Rating: %1, Side: %2 Skin: %3",rating player,side group player, _model];
  55.  
  56.     execvm "addactions.sqf";
  57.     };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement