ACE3/addons/missileguidance/functions/fnc_gps_getAttackData.sqf

31 lines
630 B
Plaintext
Raw Normal View History

2021-04-19 07:27:49 +00:00
#include "script_component.hpp"
/*
2023-09-09 16:30:39 +00:00
* Author: tcvm
2021-04-19 07:27:49 +00:00
* Returns attack data for GPS guided bomb
*
* Arguments:
* None
*
* Return Value:
* None
*
* Example:
* [] call ace_missileguidance_fnc_gps_getAttackData
*
* Public: No
*/
if (GVAR(gps_mode) isEqualTo "too") then {
2021-05-02 05:04:08 +00:00
private _target = getPilotCameraTarget (vehicle ACE_PLAYER);
_target params ["_tracking", "_position", "_object"];
GVAR(gps_currentSettings) set [0, _position]
2021-04-19 07:27:49 +00:00
};
2021-04-21 21:53:52 +00:00
// create a copy of this array to make sure values are not overwritten
[
2021-05-02 05:04:08 +00:00
GVAR(gps_currentSettings)#0,
GVAR(gps_currentSettings)#1,
GVAR(gps_currentSettings)#2
2021-04-21 21:53:52 +00:00
]
2021-04-19 07:27:49 +00:00