Mine Detector Functions

ace_minedetector_fnc_activateDetector

Description

Activates the mine detector. Selects the mine detector if not selected.

Parameters

Index Description Datatype(s) Default Value
0 Unit OBJECT  
1 Detector type STRING currentWeapon Unit

Return Value

Description Datatype(s)
If the detector was activated BOOL

Example

[player, currentWeapon player] call ace_minedetector_fnc_activateDetector

Authors

  • Glowbal

ace_minedetector_fnc_deactivateDetector

Description

Deactivates the mine detector.

Parameters

Index Description Datatype(s) Default Value
0 Unit OBJECT  
1 Detector type STRING currentWeapon Unit

Return Value

Description Datatype(s)
If the detector was deactivated BOOL

Example

[player, currentWeapon player] call ace_minedetector_fnc_deactivateDetector

Authors

  • Glowbal

ace_minedetector_fnc_hasDetector

Description

Checks if the unit has a mine detector.

Parameters

Index Description Datatype(s) Default Value
0 Unit OBJECT  
1 Detector type STRING currentWeapon Unit

Return Value

Description Datatype(s)
Current weapon is a mine detector BOOL

Example

player call ace_minedetector_fnc_hasDetector

Authors

  • Glowbal

ace_minedetector_fnc_isDetectorEnabled

Description

Checks if the mine detector is enabled.

Parameters

Index Description Datatype(s) Default Value
0 Unit OBJECT  
1 Detector type STRING currentWeapon Unit

Return Value

None

Example

[player, currentWeapon player] call ace_minedetector_fnc_isDetectorEnabled

Authors

  • Glowbal