mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
27 lines
629 B
Plaintext
27 lines
629 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: jaynus / nou
|
|
* Handles AI shooting a locking missile
|
|
*
|
|
* Arguments:
|
|
* 0: Target <OBJECT>
|
|
* 1: Ammo <STRING>
|
|
* 2: Shooter <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [cursorTarget, "x", player] call ace_missileguidance_fnc_onIncomingMissile;
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_target", "_ammo", "_shooter"];
|
|
|
|
if (GVAR(enabled) < 1) exitWith {}; // bail if enabled
|
|
if !(local (gunner _shooter) || {local _shooter}) exitWith {}; // bail if not shooter
|
|
|
|
_shooter setVariable [QGVAR(vanilla_target),_target, false];
|
|
TRACE_2("setting vanilla target",_shooter,_target);
|