mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
12 lines
377 B
Plaintext
12 lines
377 B
Plaintext
// 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;
|
|
};
|
|
};
|