ACE3/addons/rangecard/functions/fnc_canShow.sqf
ulteq 3c753d74ec Reordered the rangecard menu entries:
* Also added the ability to copy your own rangecards
* Reference: https://github.com/acemod/ACE3/pull/1118
2015-06-10 22:56:35 +02:00

19 lines
439 B
Plaintext

/*
* Authors: Ruthberg
* Tests if the Range Card can be shown
*
* Arguments:
* Nothing
*
* Return Value:
* canShow (bool)
*
* Example:
* [] call ace_rangecard_fnc_canShow
*
* Public: No
*/
#include "script_component.hpp"
(GVAR(ammoClass) != "" && GVAR(magazineClass) != "" && GVAR(weaponClass) != "" && !GVAR(RangeCardOpened) && ("ACE_RangeCard" in (uniformItems ACE_player)) || ("ACE_RangeCard" in (vestItems ACE_player)))