Jump to content
Sign in to follow this  
buliwyf

createMarker

Recommended Posts

Hi..

did anyone get the command createMarker working?!

I tried the command from WiKi, but it doesn`t work for me...

confused_o.gifhelp.gif

Share this post


Link to post
Share on other sites

Hello.

Markers always have to be adressed in either "marker" or with ArmA 'marker'(which I prefer) form.Thus

createMarker ['marker1',position player]

Now that we have a marker,we need to make it visible somehow

'marker1' setMarkerType 'Dot'

But I agree with you that as of now the BIKI isn't very accurate.But as long as it gets continually updated with new information smile_o.gif

Share this post


Link to post
Share on other sites

It works quite well, actually.

You can check out my tracking script to see how it's done.

It creates LOTS of markers to track unit movements (mainly used for testing scripts and missions):

car_and_foot_patrol.gif

Share this post


Link to post
Share on other sites

Damn... that`s hot.. thanks for your answers.. you helped me very much...

notworthy.gif

Share this post


Link to post
Share on other sites

I've made a simple script that creates a marker for an object with its group as markertext. It's great for debugging reasons. If object dies, marker is deleted again.

Call with <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">[this] exec "obj_watcher.sqs" from an init-line of a unit:

obj_watcher.sqs

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

_obj = _this select 0;

_markertext = format["%1",group _obj];

_marker = createMarker [_markertext, getpos _obj];

_marker setMarkerShape "ICON";

_marker setMarkerType "DOT";

_marker setMarkerText _markertext;

#refresh_marker

~0.5

_marker setmarkerpos position _obj;

?!(alive _obj):deleteMarker _marker;EXIT;

goto "refresh_marker";

Marker will be named like this:

GUER 1-1-A

WEST 1-1-A

CIVL 1-1-A

EAST 1-1-A

etc.

Share this post


Link to post
Share on other sites

For MP you all should check the createMarkerLocal command... wink_o.gif

Share this post


Link to post
Share on other sites
Ah yes createMarkerLocal!

Thx for adding this.

Will help me alot.

Maybe i should look more often into the biki history ^^.

Make sure you're using that one together with the other local commands, check biki wink_o.gif

Share this post


Link to post
Share on other sites

AFAIK those commands are new for ArmA 1.04. I don't think the markerlocal commands will work yet. Of course I haven't tested them.

ATM, createMarker and setMarkerText are GLOBAL commands, whereas all other setMarker commands are LOCAL. This will obviously change with ArmA 1.04 since they just added a ton of Local marker commands.

Share this post


Link to post
Share on other sites

Hmm... is there already still a new marker Script avalible for 1.05, which works on Dedicated Servers too?

If yes can i get it plz... whistle.gif

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  

×