Hi, i need to know how to set up a updated marker every 10 sec or X time...
try whit this but isnt work:
updatemark.sqf
if(isServer) then{ [] spawn { While{not isNull <myunit>; sleep 0.5} do{ "myunit" setMarkerPos getPos <myunit>; }; }; };
then i call it from init.sqf at very bottom whit:
[] execVM "custom\updatemarker.sqf";
Here is the unit what i need to be marked every time:
_unit_11 = objNull;
if (true) then
{
_this = _group_2 createUnit ["INS_Bardak_DZ", [2011.6644, 2244.1541, 2.8610229e-006], [], 0, "CAN_COLLIDE"];
_unit_11 = _this;
_this setVehicleVarName "myunit";
myunit = _this;
_this setUnitAbility 0.60000002;
if (false) then {_group_2 selectLeader _this;};
};
**another thing.. i need my unit in not allow damage mode... i try whit allowdamage false; but isnt work. i guess its no work cuz allowdamage its for use in local. Thers another way¿? any god mode for units in moves?
any idea?