OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Bad Maniac on 26 Apr 2003, 02:27:08

Title: Removing Markers
Post by: Bad Maniac 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 ???
Title: Re:Removing Markers
Post by: Sui 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 ;)
Title: Re:Removing Markers
Post by: Bad Maniac on 26 Apr 2003, 14:05:34
"marker" setmarkertype "EMPTY";
Works perfect, thanks Sui.