ACE3/TO_MERGE/agm/TopDownAttack/functions/fn_getLockedTarget.sqf

12 lines
377 B
Plaintext
Raw Normal View History

// by commy2
// cursorTarget doesn't work for lockable weapons in fired event handlers
if (!isNull cursorTarget) then {
AGM_TopDownAttack_LockedTarget = cursorTarget;
AGM_TopDownAttack_LockedTargetTime = time;
} else {
if (time - (missionNamespace getVariable ["AGM_TopDownAttack_LockedTargetTime", -1]) > 1) then {
AGM_TopDownAttack_LockedTarget = objNull;
};
};