Home   Help Search Login Register  

Author Topic: Removing Markers  (Read 495 times)

0 Members and 1 Guest are viewing this topic.

Bad Maniac

  • Guest
Removing Markers
« on: 26 Apr 2003, 02:27:08 »
Hi, It's me again!   ;D

I've manage to come a long way thanks to all you people. But I'm stuck again.
I have a script that moves a marker to the position of a unit, and updates it at set intervalls, and it works. However, I want to remove the marker when the object is dead. I know how to do it in my script, I can put a line just before exit, when it no longer loops, because it detects that the unit is dead.
But whats the command for removing a marker? Or if there isn't one, how can I fake removing it ???

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Removing Markers
« Reply #1 on: 26 Apr 2003, 04:26:22 »
There are a couple of things you can try (as I don't think you can delete markers).

The first is to just make the marker invisible:

"marker" setmarkertype "empty"

The second is to simply move the marker off the map

"marker" setmarkerpos [0,10000,0]

Hope that helps you out ;)

Bad Maniac

  • Guest
Re:Removing Markers
« Reply #2 on: 26 Apr 2003, 14:05:34 »
"marker" setmarkertype "EMPTY";
Works perfect, thanks Sui.