12juil/110
arma2 [SQF] tracker
Cela synchronise simplement la position d’un marqueur avec celle d’un object donné.
A noter que vous pouvez, à tout moment, stopper la synchro en ajoutant un déclencheur avec le champs onAct suivant :
tm4_gpsUnit = false;
Vous pouvez également utiliser le code suivant pour ne pas créer les marqueurs à la main :
/* ================================================================================
File written by tom_48_97
www.tom4897.eu www.armaholic.com
Written for arma in 2006, updated for arma 2 in July 2009
execVM(unit as Object, marker as Marker)
================================================================================ */
_unitName = _this select 0;
_markerName = _this select 1;
tm4_gpsUnit = true;
_markerName setMarkerPos getpos _unitName;
while {(alive _unitName) and tm4_gpsUnit} do
{
_markerName setmarkerpos getpos _unitName;
sleep 1.5;
};
if (!alive _unitName) Then
{
_markerName setmarkerpos getpos _unitName;
_markerName setMarkerColor "ColorBlack";
exit;
};
_markerName setmarkerpos getpos _unitName;
_markerName setMarkerColor "ColorBlack";
hint "Relais GPS injoignable";
_unitName removeWeapon "ItemGPS";
if (true) exitWith {tm4_gpsEnd=true;};
Content de cet article?
Commentaires (0)
Trackbacks (0)
(Souscrire aux commentaires de cet article)
Aucun trackbacks pour l'instant
