OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: BrAinOfJ on 23 Jan 2006, 14:26:18

Title: renaming markers.
Post by: BrAinOfJ 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 ?
Title: Re:renaming markers.
Post by: XCess 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.