2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2015-09-26 14:26:41 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
* Updates marker position and texts.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Marker <STRING>
|
|
|
|
* 1: Side <SIDE>
|
|
|
|
* 2: Position <ARRAY>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [marker_name, side ACE_Player, getPos ACE_Player] call ace_respawn_fnc_updateRallypoint
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-04-15 17:18:42 +00:00
|
|
|
|
2015-09-26 14:26:41 +00:00
|
|
|
params ["_rallypoint", "_side", "_position"];
|
2015-04-15 17:18:42 +00:00
|
|
|
|
|
|
|
if (!hasInterface) exitWith {};
|
|
|
|
|
2017-10-10 14:39:59 +00:00
|
|
|
private _marker = _rallypoint getVariable [QGVAR(marker), ""];
|
|
|
|
private _markerDate = _rallypoint getVariable [QGVAR(markerDate), ""];
|
2015-04-15 17:18:42 +00:00
|
|
|
|
2015-04-15 18:50:03 +00:00
|
|
|
_marker setMarkerPosLocal _position;
|
2015-04-15 17:18:42 +00:00
|
|
|
_marker setMarkerTextLocal _markerDate;
|