daily pastebin goal
25%
SHARE
TWEET

fn_statusBar.sqf

a guest Jan 20th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. waitUntil {!(isNull (findDisplay 46))};
  2. disableSerialization;
  3. /*
  4.     File: fn_statusBar.sqf
  5.     Author: Some French Guy named Osef I presume, given the variable on the status bar
  6.     Edited by: [midgetgrimm]
  7.     Description: Puts a small bar in the bottom right of screen to display in-game information
  8.  
  9. */
  10. 4 cutRsc ["osefStatusBar","PLAIN"];
  11.  
  12. [] spawn {
  13.     sleep 5;
  14.     _counter = 180;
  15.     _timeSinceLastUpdate = 0;
  16.     while {true} do
  17.     {
  18.         sleep 1;
  19.         _counter = _counter - 1;
  20.         ((uiNamespace getVariable "osefStatusBar")displayCtrl 1000)ctrlSetText format[" FPS: %1 | Police: %2 | Civilians: %3 | EMS: %4 | CASH: %5 | BANK: %6 | GRIDREF: %7 ", round diag_fps, west countSide playableUnits, civilian countSide playableUnits, independent countSide playableUnits,[life_cash] call life_fnc_numberText,[life_atmbank] call life_fnc_numberText,mapGridPosition player, _counter];
  21.     };
  22. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top