mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Added check to addEarplugs if earplugs are used
This commit is contained in:
parent
f52babe546
commit
9e6ce52fb6
@ -15,9 +15,12 @@
|
|||||||
*/
|
*/
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_unit", "_launcher"];
|
PARAMS_1(_unit);
|
||||||
|
|
||||||
_unit = _this select 0;
|
// Exit if soldier has earplugs already in (persistence scenarios)
|
||||||
|
if (FUNC(hasEarPlugsIn)) exitWith {};
|
||||||
|
|
||||||
|
private ["_launcher"];
|
||||||
|
|
||||||
// add earplugs if the soldier has a rocket launcher
|
// add earplugs if the soldier has a rocket launcher
|
||||||
_launcher = secondaryWeapon _unit;
|
_launcher = secondaryWeapon _unit;
|
||||||
|
Loading…
Reference in New Issue
Block a user