ACE3/addons/hearing/functions/fnc_hasEarPlugsIn.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

20 lines
344 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: commy2
* Check if the unit has earplugs put in.
*
* Arguments:
* 0: Unit (player) <OBJECT>
*
* Return Value:
* Have Earplugs in <BOOL>
*
* Example:
* [ace_player] call ace_hearing_fnc_hasEarPlugsIn
*
* Public: No
*/
params ["_unit"];
_unit getVariable ["ACE_hasEarPlugsin", false]