Guest User

Untitled

a guest
Jun 11th, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. /*
  2. File: fn_deathScreen.sqf
  3. Author: Bryan "Tonic" Boardwine
  4.  
  5. Description:
  6. Handles stuff being displayed on the death screen while
  7. it is currently active.
  8. */
  9. private["_medicsOnline","_medicsNear"];
  10. disableSerialization;
  11.  
  12.  
  13. _medicsOnline = ((findDisplay 7300) displayCtrl 7304);
  14. _medicsNear = ((findDisplay 7300) displayCtrl 7305);
  15.  
  16. waitUntil {
  17. _nearby = if (([independent,getPosATL player,1000] call life_fnc_nearUnits)) then {"OUI"} else {"NON"};
  18. _medicsOnline ctrlSetText format[localize "STR_Medic_Online",independent countSide playableUnits];
  19. _medicsNear ctrlSetText format[localize "STR_Medic_Near",_nearby];
  20. sleep 1;
  21. (isNull (findDisplay 7300));
  22. sleep 10;
  23. [] call life_fnc_medicRequest;
  24. sleep 2;
  25. [] call life_fnc_medicRequest;
  26. };
Advertisement
Add Comment
Please, Sign In to add comment