2015-01-11 16:42:31 +00:00
|
|
|
/*
|
|
|
|
* 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>
|
|
|
|
*
|
|
|
|
* 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-11 16:42:31 +00:00
|
|
|
*/
|
2015-01-14 01:41:53 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-03-15 21:40:47 +00:00
|
|
|
PARAMS_1(_unit);
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-01-13 04:17:52 +00:00
|
|
|
_unit getVariable ["ACE_hasEarPlugsin", false]
|