mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Added weapon resting state icon
This commit is contained in:
parent
dd51037c5e
commit
77666e8097
BIN
addons/resting/data/icons/icon_bipod.paa
Normal file
BIN
addons/resting/data/icons/icon_bipod.paa
Normal file
Binary file not shown.
@ -27,6 +27,9 @@ _intersects = _this call FUNC(getIntersection);
|
||||
|
||||
if (true in _intersects) then {
|
||||
_unit setVariable ["ACE_weaponRested", true];
|
||||
if (_unit == ACE_PLAYER) then {
|
||||
[QGVAR(bipodDeployed), true, QUOTE(PATHTOF(data\icons\icon_bipod.paa)), [1,1,1,1], -1] call EFUNC(common,displayIcon);
|
||||
};
|
||||
|
||||
private "_restedPosition";
|
||||
_restedPosition = getPosASL _unit;
|
||||
|
@ -47,3 +47,7 @@ playSound QGVAR(unrest);
|
||||
|
||||
_unit setVariable ["ACE_weaponRested", false];
|
||||
_unit setVariable ["ACE_bipodDeployed", false];
|
||||
|
||||
if (_unit == ACE_PLAYER) then {
|
||||
[QGVAR(bipodDeployed), false, "", [1,1,1,1], -1] call EFUNC(common,displayIcon);
|
||||
};
|
Loading…
Reference in New Issue
Block a user