Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.94 KB | None | 0 0
  1. _closeprox = _tvMid tvAdd [[],"--Close proximity (500m)--"];
  2.  
  3.   _onfoot = _tvMid tvAdd [[],"--On foot--"];
  4.  
  5.   _inveh = _tvMid tvAdd [[],"--In vehicle--"];
  6.  
  7.   _dead = _tvMid tvAdd [[],"--Dead--"];
  8.  
  9.   _tvMid tvSetColor [[_closeprox], [1,0,0,1]];
  10.   _tvMid tvSetColor [[_onfoot], [1,0,0,1]];
  11.   _tvMid tvSetColor [[_inveh], [1,0,0,1]];
  12.   _tvMid tvSetColor [[_dead], [1,0,0,1]];
  13.  
  14.   {
  15.    _name = name _x;
  16.    _dist = player distance _x;
  17.    if (vehicle _x == _x) then {
  18.      _playerOnFoot = 1;
  19.    } else {
  20.      _playerOnFoot = 0;
  21.    };
  22.    if (alive player) then {
  23.      _playerIsAlive = 1;
  24.    } else {
  25.      _playerIsAlive = 0;
  26.    };
  27.  
  28.    if (_dist < 500) then {
  29.      _tvMid tvAdd [[_closeprox],_name];
  30.    };
  31.  
  32.    if (_playerOnFoot == 1) then {
  33.      _tvMid tvAdd [[_onFoot],_name];
  34.    } else {
  35.      _tvMid tvAdd [[_inveh],_name];
  36.    };
  37.  
  38.    if (_playerIsAlive == 0) then {
  39.      _tvMid tvAdd [[_dead],_name];
  40.    };
  41.  
  42.   } forEach allUnits;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement