Colle

Map Marker Events?

3 posts in this topic

Hello All, I was wondering if it would be possible to make "dynamic" map markers. For example in dms missions is it possible to make a marker show up like "Claimed by (player)" When that certain player kills an AI at said mission, This would be pretty cool as we are hosting a PvE Exile server and this would help alot!

Share this post


Link to post
Share on other sites

There is already a marker created that shows when a mission is completed (optional i believe), you may be able to add to the markers text and include name of nearest player (assuming they are the one who triggered completion)

Share this post


Link to post
Share on other sites

So i looked around for you.. In the DMS mission pbo.. in a3_dms\scripts\fn_removemarkers.sqf find this section around line 31. You should be able to figure out how to put the players name in the win text.

if (_status == "win") then
{
	if (!DMS_MissionMarkerWinDot) exitWith
	{
		deleteMarker _markerDot;
	};
	_markerDot setMarkerText ("COMPLETED: "+_text);
	_markerDot setMarkerColor DMS_MissionMarkerWinDotColor;
	_markerDot setMarkerType DMS_MissionMarkerWinDot_Type;
	//_markerDot spawn {sleep DMS_MissionMarkerWinDotTime;deleteMarker _this;};
	[DMS_MissionMarkerWinDotTime, {deleteMarker (_this select 0);}, [_markerDot], false] call ExileServer_system_thread_addTask;
	if (DMS_DEBUG) then
	{
		(format ["RemoveMarkers :: %1 Marker will be removed in %2 seconds!",_markerDot,DMS_MissionMarkerWinDotTime]) call DMS_fnc_DebugLog;
	};
}

 

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.