ACE3/addons/minedetector/functions/fnc_hasDetector.sqf

21 lines
384 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
2016-05-03 20:37:02 +00:00
/*
* Author: Glowbal
* Check if unit has a mine detector in hands
*
* Arguments:
* 0: Unit <OBJECT>
*
* Return Value:
* Current weapon is a mine detector <BOOLEAN>
*
* Example:
* [ace_player] call ace_minedetector_fnc_hasDetector
*
* Public: No
*/
params ["_unit"];
!(([currentWeapon _unit] call FUNC(getDetectorConfig)) isEqualTo []);