Advertisement
Raimonds

Dynamic HUD update

Jun 29th, 2016
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //HUD groups (ie topRight) are defined, populated, scaled and positioned in CfgDynamicHUD.hpp in MPMissions
  2. //because IDCs are dynamically given (From pool of free IDCs by epoch_getIDC function), please do not
  3. //attempt to find IDCs programatically via custom scripts, it won't work well.
  4. //instead use function you see below by giving it HUD Group's name and index of element you want.
  5. //Please be aware, 0 index is NOT used, counting starts with 1.
  6. //0 index is a string - name of the group!
  7.  
  8. for "_i" from 1 to 8 do {
  9.     _c = (["topRight",_i] call epoch_getHUDCtrl);
  10.     _c ctrlSetText "x\addons\a3_epoch_code\Data\UI\buttons\player_inspect.paa";
  11. };
  12.  
  13. for "_i" from 1 to 9 do {
  14.     _c = (["botcenter",_i] call epoch_getHUDCtrl);
  15.     _c ctrlSetText "x\addons\a3_epoch_code\Data\UI\buttons\krypto.paa";
  16. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement