Jump to content
Sign in to follow this  
jakeplissken

Script to place a marker only for JIP clients and per side.

Recommended Posts

This script will place a round base marker that is only visible to players on that side. This is what I used for a Sector Control mission and this works very well. Good to mark your base whilst hiding it from the enemy players.

if hasInterface then {
//run on all player clients incl. headless clients but not player host
if (side player == west) then {
	_marker = createMarkerLocal ["nato", position player ];
	_marker setMarkerPosLocal getMarkerPos usa;
	_marker setMarkerShapeLocal "ELLIPSE";
	_marker setMarkerColorLocal "ColorWEST";
	_marker setMarkerSizeLocal [200, 200];
};

if (side player == east) then {
	_marker = createMarkerLocal ["alliance", position player ];
	_marker setMarkerPosLocal getMarkerPos csat;
	_marker setMarkerShapeLocal "ELLIPSE";
	_marker setMarkerColorLocal "ColorEAST";
	_marker setMarkerSizeLocal [200, 200];
};

if (side player == guer) then {
	_marker = createMarkerLocal ["alliance", position player ];
	_marker setMarkerPosLocal getMarkerPos aaf;
	_marker setMarkerShapeLocal "ELLIPSE";
	_marker setMarkerColorLocal "ColorGUER";
	_marker setMarkerSizeLocal [200, 200];
};
};

I hope someone finds this script useful. Script fixed with the new improved code.

Edited by jakeplissken
Fixed the code.

Share this post


Link to post
Share on other sites

And all the "setMarkerBlah" commands also need to be their local variants.

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  

×