OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: BUG=SAM= on 01 Jun 2004, 21:47:19

Title: a question about CREATING MARKER
Post 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 ???
Title: Re:a question about CREATING MARKER
Post by: CrashnBurn on 01 Jun 2004, 21:57:12
No :o
Title: Re:a question about CREATING MARKER
Post by: BUG=SAM= on 01 Jun 2004, 22:11:10
 :o
it's impossible ?
 :-\ :-\
Title: Re:a question about CREATING MARKER
Post by: BUG=SAM= on 01 Jun 2004, 22:19:49
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 ?

 :-[ ??? :'(
Title: Re:a question about CREATING MARKER
Post by: StonedSoldier on 01 Jun 2004, 22:24:41
do you really need that many markers though??
Title: Re:a question about CREATING MARKER
Post by: j-man on 01 Jun 2004, 22:30:18
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.
Title: Re:a question about CREATING MARKER
Post by: BUG=SAM= on 01 Jun 2004, 22:53:18
 :-[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  :'(
Title: Re:a question about CREATING MARKER
Post by: BUG=SAM= on 07 Jun 2004, 06:15:44
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