ACE3/addons/respawn/functions/fnc_updateRallypoint.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

30 lines
660 B
Plaintext

#include "..\script_component.hpp"
/*
* 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
*/
params ["_rallypoint", "_side"];
private _position = param [2, getpos _rallypoint];
if (!hasInterface) exitWith {};
private _marker = _rallypoint getVariable [QGVAR(marker), ""];
private _markerDate = _rallypoint getVariable [QGVAR(markerDate), ""];
_marker setMarkerPosLocal _position;
_marker setMarkerTextLocal _markerDate;