Jump to content
Sign in to follow this  
nullsystems

Marker, local to one side only.

Recommended Posts

Ello,

Silly question I know, but...

Is there one way to set a marker local to one side via the editor/scripting?

I would presume its the "local" version of marker commands, would I be correct?

Any help would be appreciated!

Share this post


Link to post
Share on other sites

Either use deleteMarkerLocal to delete editor placed or globally created markers for a specific side or use createMarkerLocal and create the marker if a player belongs to a specific side.

Xeno

Share this post


Link to post
Share on other sites
Either use deleteMarkerLocal to delete editor placed or globally created markers for a specific side or use createMarkerLocal and create the marker if a player belongs to a specific side.

Xeno

ah, thats what I thought. Just wasnt a way to test it without doin a whole mp session.

There is an example on here:

//_plMarker = createMarker [_name, position player];
//_plMarker setMarkerColor "ColorBlue";
//_plMarker setMarkerType "Air";
//_plMarker setMarkerText format["%1",name player];
//_plMarker setMarkerSize [1, 1];
//_plMarker setMarkerDir getdir player;

So, to create it from a script I would use:

//_plMarker = createMarkerLocal [_name, position player];
//_plMarker setMarkerColorLocal "ColorBlue";
//_plMarker setMarkerTypeLocal "Air";
//_plMarker setMarkerTextLocal format["%1",name player];
//_plMarker setMarkerSizeLocal [1, 1];
//_plMarker setMarkerDirLocal getdir player;

But how do I ensure its local to blufor only, so that only they can see it?

Kinda got my head stuck on this one.

Edited by nullsystems

Share this post


Link to post
Share on other sites
But how do I ensure its local to blufor only, so that only they can see it?

if (playerSide == west) then {
   // do the local marker stuff here
};

Xeno

  • Like 1

Share this post


Link to post
Share on other sites

Im probably best off sticking that in the init.sqf aren't I ?

Btw, thanks again Xeno.

oh, I updated our version of Aircav recently. Removed the jip_fix since 1.03 and added a few other features, dunno if you want a copy to take a look see?

Edited by nullsystems

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  

×