mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge branch 'master' of https://github.com/acemod/ACE3
This commit is contained in:
commit
46bd51ffdf
@ -1,6 +1,6 @@
|
||||
#include "script_component.hpp"
|
||||
PARAMS_2(_target,_args);
|
||||
|
||||
if(!local _target) exitWith {};
|
||||
if(isNil "_target" || { objNull _target} || {!local _target} ) exitWith { false };
|
||||
|
||||
[FUNC(guidancePFH), 0, _args] call cba_fnc_addPerFrameHandler;
|
@ -86,13 +86,20 @@ _args = [_this,
|
||||
// Laser code needs to give us a shooter for LOBL, or the seeker unit needs to be able to shift locality
|
||||
// Based on its homing laser
|
||||
// Lasers need to be handled in a special LOAL/LOBL case
|
||||
_guidingUnit = ACE_player;
|
||||
|
||||
if(local _guidingUnit) then {
|
||||
//if(isPlayer _shooter) then {
|
||||
// _guidingUnit = ACE_player;
|
||||
//
|
||||
// if(local _guidingUnit) then {
|
||||
// [FUNC(guidancePFH), 0, _args ] call cba_fnc_addPerFrameHandler;
|
||||
// } else {
|
||||
// [QGVAR(handoff), [_guidingUnit, _args] ] call FUNC(doHandoff);
|
||||
// };
|
||||
//} else {
|
||||
[FUNC(guidancePFH), 0, _args ] call cba_fnc_addPerFrameHandler;
|
||||
} else {
|
||||
[QGVAR(handoff), [_guidingUnit, _args] ] call FUNC(doHandoff);
|
||||
};
|
||||
//};
|
||||
|
||||
|
||||
/* Clears locking settings
|
||||
(vehicle _shooter) setVariable [QGVAR(target), nil];
|
||||
(vehicle _shooter) setVariable [QGVAR(seekerType), nil];
|
||||
|
Loading…
Reference in New Issue
Block a user