Home   Help Search Login Register  

Author Topic: renaming markers.  (Read 1300 times)

0 Members and 1 Guest are viewing this topic.

BrAinOfJ

  • Guest
renaming markers.
« on: 23 Jan 2006, 14:26:18 »
Hey guys,
I would like to know if i can rename markers in a script, more importantly.. how.

The idea is to create on the map ingame a marker over the top of a players position, with his/her name.

Any ideas ?

Offline XCess

  • Former Staff
  • ****
Re:renaming markers.
« Reply #1 on: 23 Jan 2006, 15:24:53 »
You cannot change the text of a marker, you can however switch whther a marker is visible with:

makerNamer setMarkerType "empty"

that will make it invisible. To change it back switch empty with one of the following:

"Flag", "Flag1", "Dot", "Destroy", "Start", "End", "Warning", "Join", "Pickup", "Unknown", "Marker", "Arrow", "Empty".

This way you can create multiple markers with different text but only show the marker you want to be shown at a certain time.

Also, use setMarkerPos (getPos player) to mark the player's position on the map with it. You will obviously need a loop to make sure it updates his position.