OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: PheliCan on 27 May 2003, 18:40:32
-
Is it possible to create markers on a map from a script? I'm working on a MP modification that supports reports from groups not in your group. As there are two players, one playing west and one playing east, I only want the markers to show on one side...
Is this possible?
-
This is how its normally done in the init.sqs
?side player==east:"WStart" setmarkertype "empty"
?side player==east:"Respawn_West" setmarkersize[0,0]
If its an icon set it to empty
if its an ellipse or rectangle set its size to 0,0
On the fly ??, dont know, but what you could do is basically create all the markers you want during mission editing, initially have them unseen, then when you want, set their positions to wherever you want them, set their color size type etc
here are the marker commands avail
"mymarker" setmarkersize [x, y]
"mymarker" setmarkerpos getmarkerpos "myothermarker"
"mymarker" setmarkercolor [colorblue]
"mymarker" setmarkertype "Destroy" (see comref for others)
other colors are "colorredalpha", "colorgreen", "default" and others see the command ref
-
Placing the markers within init.sqs could be useful to know about as I plan to make this mod for every map, not just one.
I was looking for a way to do it "on the fly", but I guess it's not possible to do that...
Thanks anyway! :)