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:
|
2018-01-17 11:36:10 +00:00
|
|
|
* 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-11 16:42:31 +00:00
|
|
|
*/
|
2015-01-14 01:41:53 +00:00
|
|
|
#include "script_component.hpp"
|
2015-08-13 21:42:20 +00:00
|
|
|
params ["_unit"];
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-01-13 04:17:52 +00:00
|
|
|
_unit getVariable ["ACE_hasEarPlugsin", false]
|