2024-05-28 02:47:18 +00:00
|
|
|
#include "..\script_component.hpp"
|
|
|
|
/*
|
|
|
|
* Author: tcvm
|
|
|
|
* Sets up MCLOS state arrays (called from missileGuidance's onFired).
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* Guidance Arg Array <ARRAY>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [] call ace_missileguidance_fnc_MCLOS_onFired
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
params ["_firedEH", "", "", "", "_stateParams"];
|
|
|
|
_firedEH params ["_shooter","_weapon","","","","","_projectile"];
|
|
|
|
_stateParams params ["", "_seekerStateParams"];
|
|
|
|
|
2024-08-30 06:30:41 +00:00
|
|
|
private _source = vehicle _shooter;
|
|
|
|
|
|
|
|
private _controlled = _source getVariable [QGVAR(mclos_projectiles), []];
|
|
|
|
_controlled pushBack _projectile;
|
|
|
|
_source setVariable [QGVAR(mclos_projectiles), _controlled];
|
|
|
|
|
|
|
|
_projectile setVariable [QGVAR(source), _source];
|