1
0
mirror of https://github.com/acemod/ACE3.git synced 2024-08-30 18:23:18 +00:00
ACE3/addons/scopes/scripts/zeroingOnLoad.sqf
bux578 a1c167844d fix errors, but still no overlay
and lots of spawns
2015-01-18 08:13:37 +01:00

19 lines
538 B
Plaintext

disableSerialization;
_display = _this select 0;
uiNamespace setVariable ["ACE_Scopes_ZeroingDisplay", _display];
_vertical = _display displayCtrl 925002;
_horizontal = _display displayCtrl 925003;
_weapons = [
primaryWeapon player,
secondaryWeapon player,
handgunWeapon player
];
if ((currentWeapon player) in _weapons) then {
_zeroing = ACE_Scopes_Adjustment select (_weapons find (currentWeapon player));
_horizontal ctrlSetText (str (_zeroing select 0));
_vertical ctrlSetText (str (_zeroing select 1));
};