ACE3/addons/respawn/functions/fnc_updateRallypoint.sqf
2015-09-26 16:28:18 +02:00

31 lines
640 B
Plaintext

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