OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: BUG=SAM= on 01 Jun 2004, 21:47:19
-
How to create markers by script, instead of pre-put em in mission editor and move em by script. :-\
Is it possible to perform by OFP script ???
-
No :o
-
:o
it's impossible ?
:-\ :-\
-
but the situation exists that needs to trace&mark many targets on map.
there is anyone has enough patient to place tons of Markers in MissionEditor and spend tons of scripts to move those markers in game ?
:-[ ??? :'(
-
do you really need that many markers though??
-
Like CrashBurn said, it's impossible. but what you can do is creat all the markers in the editor and set the markers type to "EMPTY" so that they can't be seen. Then in a script, use this line:
markername setMarkerType "type"
and replace type with something. eg. marker, arrow, flag, etc...
This might work for what your trying to do.
-
:-[thx men
i had checked the file "missions.sqm", find "marker" isn't the same CLASS of general Object .
So I guess any script such as "camcreate, createunit, createvehicle .." could not perform this action ..
anyway thx all :'(
-
I found a method to solve this problem .and it don't need too much struggle . ;D
at first , place tons of makers on map using ctrl-C and ctrl-V , the mission editor will rename the markers automaticlly with affix "_xx" , xx is number.
then when u want to use this markers in script. just using string addition.
such as:
"original name_" + format["%1", counter]
so perform to index every markers and we don't need tons of scripts ;D