Home   Help Search Login Register  

Author Topic: a question about CREATING MARKER  (Read 529 times)

0 Members and 1 Guest are viewing this topic.

BUG=SAM=

  • Guest
a question about CREATING MARKER
« 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 ???

CrashnBurn

  • Guest
Re:a question about CREATING MARKER
« Reply #1 on: 01 Jun 2004, 21:57:12 »
No :o

BUG=SAM=

  • Guest
Re:a question about CREATING MARKER
« Reply #2 on: 01 Jun 2004, 22:11:10 »
 :o
it's impossible ?
 :-\ :-\

BUG=SAM=

  • Guest
Re:a question about CREATING MARKER
« Reply #3 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 ?

 :-[ ??? :'(

StonedSoldier

  • Guest
Re:a question about CREATING MARKER
« Reply #4 on: 01 Jun 2004, 22:24:41 »
do you really need that many markers though??

j-man

  • Guest
Re:a question about CREATING MARKER
« Reply #5 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.
« Last Edit: 01 Jun 2004, 22:31:04 by j-man »

BUG=SAM=

  • Guest
Re:a question about CREATING MARKER
« Reply #6 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  :'(

BUG=SAM=

  • Guest
Re:a question about CREATING MARKER
« Reply #7 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