Add store new helper object

Fixes an issue were you end up with many helper objects that are not cleaned up
This commit is contained in:
Glowbal 2016-06-16 14:57:26 +02:00 committed by GitHub
parent d5f8d965f3
commit 05aac2d223

View File

@ -34,6 +34,8 @@ _helperObject = "ACE_LogicDummy" createVehicleLocal (getPos _unit);
if !(isNull _helperObject) then {
_helperObject attachto [_unit,[0,0,-3],""];
_unit setvariable [QGVAR(helperLogic), _helperObject];
[_helperObject, _unit] say3D _detectorSound;
} else {
ACE_LOGERROR_1("helper does not exist [%1]",_helperObject);