Home   Help Search Login Register  

Author Topic: Is it possible to create markers with a script?  (Read 763 times)

0 Members and 1 Guest are viewing this topic.

Offline KaRRiLLioN

  • Members
  • *
  • Grits -n- Peanut Butter are a wonderful thing
    • OFP RTS-3 Real Time War
Is it possible to create markers with a script?
« on: 04 Nov 2002, 23:35:42 »
Is there any way to create markers with a script?  I know I can create them in the editor and set them to "EMPTY", etc. but what I want to do is actually create them as the mission progresses.

I dug around, but couldn't find any CreateMarker commands.  I don't think CamCreate or CreateVehicle can be used that way either since markers seem to have their own special commands.

Also, is there a way to change the text in a marker, i.e. if it says "Bridge"  can I change it to say "Bridge Down" etc. in the script?

Thanks!

major asshole

  • Guest
Re:Is it possible to create markers with a script?
« Reply #1 on: 07 Nov 2002, 07:40:08 »

G'day

You could try SetMarkerPos and SetMarkerType

hth

L8R



crosshair

  • Guest
Re:Is it possible to create markers with a script?
« Reply #2 on: 19 Nov 2002, 03:07:30 »

You could create a pool of empty markers during initialization and use them as a resource, given that you can determine the max number of markers that you might need.  

When ever you required one you could just allocate it from the pool and use setMarkerPosition and setMarkerType to move it to the location that you require.

For that matter if you know that there are discreet events like bridge up and bridge down you can specifically manage them.

Dunno about changing the name, but if you hear something please post.