Jump to content
Sign in to follow this  
Drinker

Markers

Recommended Posts

Is it possible to add new markers ingame? I would like to add and remove an infinte number of markers with scripts. Is there a command or script that creates new markers from nothing, something like createVehicle for vehicles? thanks

Share this post


Link to post
Share on other sites

There is a way to hide and reveal markers using triggers. I'm not a home right now, so I can't tell you how to do it just yet. Search around.

And you probably know this already, but for those who don't:

You can place markers on the map (during play) by double-clicking on the map and typing in a short message when the icon appears. Use the arrow keys to change the icon (default icon is 'Objective' ). You can use it to remind yourself where you parked your jeep or whatever...

Share this post


Link to post
Share on other sites
Guest jacobaby

........and if you press the up and down arrow keys while doing it, you get a vareity of markers to choose from.....

Share this post


Link to post
Share on other sites

...and holding [shift] while using arrow up or down changes the color of the marker.

Share this post


Link to post
Share on other sites

confused.gif

...I'm scared, mommy...

It's okay, son... just walk away from the crazy person...

Share this post


Link to post
Share on other sites

thx for the info, i already know that ... but my question wasnt this ... i need to create a marker in a script - and to remove it ... you cannot click on the map while playing if u need 100 dot markers in a few seconds... so im asking again if anybody knows if there is a way to insert markers ingame - not manually ? anyway thanks smile.gif

Share this post


Link to post
Share on other sites

Sadly, there is no command like createMarker to create a marker out of nothing.

The only workaround I can think of is to put a large number of "standard" markers in the editor, thus forming a database of markers. When you need a new marker, grab the first unused one from the database and adjust its appearence with setMarkerPos, setMarkerColor and setMarkerType.

Spinor

Share this post


Link to post
Share on other sites

it's possible but so there will always be a limit ... i think that a kind of command or script must be because if it is possible to insert markers manually it must be also possible to insert them by script (automatically) ... maybe Suma knows how

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">it's possible but so there will always be a limit ... <span id='postcolor'>

AFAIK, there is no hardcoded limit on the number of markers, so you can preplace maybe 1000 markers. In any case, if the "marker database" is cleverly done, you can reuse markers once they were previously removed, e.g. you can put all available markers in an array:

availableMarkers = ["marker1", "marker2", ...]

When "creating" a marker, simply grab the first marker from the list and remove it from the list, e.g.:

availableMarkers = availableMarkers - ["marker1"]

When you no longer need a given marker, move it offmap or make it "Empty" and put it back into the marker list:

availableMarkers = availableMarkers + ["marker1"]

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">i think that a kind of command or script must be because if it is possible to insert markers manually it must be also possible to insert them by script (automatically) ... maybe Suma knows how<span id='postcolor'>

Yeah, I guess it wouldn´t have been tooooo hard for BIS to create such a command, but according to the latest ComRef there is no such scripting command (Suma has of course the final word on this  biggrin.gif).

Spinor

Share this post


Link to post
Share on other sites

I can at least point you here : OFP2 Scripting Requests thread

If you look down the page, it is an OFP2 suggestion to have better control of markers and create them in game. Not possible now like Spinor said.

Share this post


Link to post
Share on other sites

aha i see, however thx for the help smile.gif ... i'll have to do in the long way ... like spinor said, or , i'll wait OFP2 wink.gif

bn880 , i've read that thread - great suggestions biggrin.gif

cya

Share this post


Link to post
Share on other sites

Nobody knows?

...i think, long ago, i have managed how to create markers ingame, but i cannot remember how i did it.

...or maybe i just dreamed about it? but i could swear i ... i don't know.

I think it IS possible.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×