mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
24 lines
526 B
Plaintext
24 lines
526 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: Garth de Wet (LH)
|
|
* Checks whether the passed unit is an explosive specialist.
|
|
* Either through config entry: "canDeactivateMines"
|
|
* or
|
|
* unit setVariable ["ACE_isEOD", true]
|
|
*
|
|
* Arguments:
|
|
* 0: Unit to check if is a specialist <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* is the unit an EOD <BOOL>
|
|
*
|
|
* Example:
|
|
* [player] call ace_common_fnc_isEOD
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
|
|
params ["_unit"];
|
|
|
|
(_unit getVariable ["ACE_isEOD", _unit getUnitTrait "explosiveSpecialist"]) in [1, true]
|