mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix script error for canceling designation and dying while designating.
This commit is contained in:
parent
511ca860e0
commit
739807303b
@ -22,4 +22,9 @@ if( (count _this) > 2) then {
|
||||
|
||||
GVAR(active) = false;
|
||||
|
||||
if(!isNil QGVAR(selfDesignateHandle)) then {
|
||||
[GVAR(selfDesignateHandle)] call CBA_fnc_removePerFrameHandler;
|
||||
GVAR(selfDesignateHandle) = nil;
|
||||
};
|
||||
|
||||
true
|
@ -83,7 +83,7 @@ if(!GVAR(active)) then {
|
||||
// @TODO: Nou gets to field all tickets about missing lasers.
|
||||
//_localLaserTarget = "LaserTargetW" createVehicleLocal (getpos ACE_player);
|
||||
|
||||
_handle = [FUNC(laserHudDesignatePFH), 0.1, [ACE_player, _laserUuid, nil]] call cba_fnc_addPerFrameHandler;
|
||||
GVAR(selfDesignateHandle) = [FUNC(laserHudDesignatePFH), 0.1, [ACE_player, _laserUuid, nil]] call cba_fnc_addPerFrameHandler;
|
||||
} else {
|
||||
[] call FUNC(laserHudDesignateOff);
|
||||
[] call FUNC(laserHudDesignateOn);
|
||||
|
Loading…
Reference in New Issue
Block a user