OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Garcia on 05 Jan 2009, 08:01:56
-
call compile format["""Marker_%1"" = createMarker [""Dot"", position player ]",_i];
Get error about missing ';' :dunno:
-
Have you tried
call compile format["""Marker_%1"" = createMarker [""Dot"", position player ];",_i];
?
-
call compile format["createMarker [""Marker_%1"", position player ];""Marker_%1"" setMarkerType ""Dot""",_i];
-
:dry:
Cheers...
Somehow I misread "String = createMarker ["name", position]" for "String = createMarker [type, position]" ::)
That's what you get for sitting late trying to script... :blink:
-
Or, avoiding dynamic code entirely (always a good plan!):
_marker = createMarker ["Marker_" + str _i, position player];
_marker setMarkerType "Dot";
-
Hmm indeed...
I've got to learn all these new functions they've added...some are quite useful :D