ACE3/addons/hearing/functions/fnc_hasEarPlugsIn.sqf

20 lines
340 B
Plaintext
Raw Normal View History

/*
* 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 (player) <OBJECT>
2015-03-15 21:40:47 +00:00
*
* Return Value:
* Have Earplugs in <BOOL>
2015-01-13 04:17:52 +00:00
*
2015-03-15 21:40:47 +00:00
* Example:
* [ace_player] call ace_hearing_fnc_hasEarPlugsIn
*
* Public: No
*/
2015-01-14 01:41:53 +00:00
#include "script_component.hpp"
2015-08-13 21:42:20 +00:00
params ["_unit"];
2015-01-13 04:17:52 +00:00
_unit getVariable ["ACE_hasEarPlugsin", false]