ACE3/addons/rangecard/functions/fnc_canCopy.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

19 lines
382 B
Plaintext

#include "..\script_component.hpp"
/*
* Authors: Ruthberg
* Checks if the target has a copyable range card
*
* Arguments:
* unit <OBJECT>
*
* Return Value:
* canShow <BOOL>
*
* Example:
* [bob] call ace_rangecard_fnc_canCopy
*
* Public: No
*/
((primaryWeapon _this) != "" && [_this] call EFUNC(common,isPlayer) && [_this, "ACE_RangeCard"] call EFUNC(common,hasItem))