ACE3/addons/hearing/functions/fnc_hasEarPlugsIn.sqf

21 lines
329 B
Plaintext
Raw Normal View History

#include "..\script_component.hpp"
/*
* Author: commy2
* Check if the unit has earplugs put in.
2015-01-13 04:17:52 +00:00
*
2015-03-15 21:40:47 +00:00
* Arguments:
* 0: Unit <OBJECT>
2015-03-15 21:40:47 +00:00
*
* Return Value:
* Has Earplugs in <BOOL>
2015-01-13 04:17:52 +00:00
*
2015-03-15 21:40:47 +00:00
* Example:
* player call ace_hearing_fnc_hasEarPlugsIn
2015-03-15 21:40:47 +00:00
*
* Public: No
*/
2015-08-13 21:42:20 +00:00
params ["_unit"];
2015-01-13 04:17:52 +00:00
_unit getVariable ["ACE_hasEarPlugsin", false]