ACE3/addons/minedetector/functions/fnc_hasDetector.sqf
Neviothr 75f7ed7532
Utilize isNotEqualTo (#7929)
* Utilize isNotEqualTo

* undo changes to some files

* redo some changes, fix based on @Vdauphin 's comment

* fix validator issues

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2021-02-27 11:05:05 -06:00

21 lines
384 B
Plaintext

#include "script_component.hpp"
/*
* 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)) isNotEqualTo [];