Advertisement
Guest User

Untitled

a guest
Jan 14th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.10 KB | None | 0 0
  1. /*
  2. *
  3. *       Dev'Arma 3 France
  4. *       The Survivors Rp
  5. *       [DA3F] Aroun Le BriCodeur
  6. *       fn_ShowPlak.sqf
  7. *       le voyorisme de la plaque di l'immatriculation (je reviens du bled... oO)
  8. *
  9. */
  10.  
  11. waitUntil {
  12.     {
  13.     private _plaque = (_x getVariable "dbInfo")select 1;
  14.     if (isNil{_x getVariable "DA3F_ShowP"} && !(isNil "_plaque")) then {
  15.         _x setVariable ["DA3F_ShowP",true,true];
  16.         _x spawn {
  17.     private _objName = "Sign_Sphere10cm_F" createVehicle [0,0,5000];
  18.     _objName enableSimulation false;
  19.     _objName setObjectTextureGlobal [0,""];
  20.     if ((typeOf _this)isEqualTo "B_Quadbike_01_F") then [{
  21.         _objName attachTo [_this,[0,-1,-0.3]];
  22.     },{
  23.         _objName attachTo [_this,[0,-2.5,-0.3]];
  24.     }];
  25. _plaque = (_this getVariable "dbInfo")select 1;
  26.     waitUntil {!(isNil "_plaque")};
  27.     waitUntil {
  28.     _units = {alive _x && ((_this distance _x)< 6) && (_x isEqualTo vehicle _x)}count playableUnits;
  29.     if (_units > 0) then {
  30. drawIcon3D ["",
  31.      [0,1,0,0.85],
  32.      visiblePosition _objName,
  33.      0, 0, 3,
  34.      _plaque,
  35.      0.9, 0.035,
  36.      "TahomaB"];
  37.         false;
  38.             };
  39.         };
  40.     };
  41. };
  42.     } forEach vehicles;
  43.     false;
  44.     sleep 1;
  45. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement