Jump to content
Crazy_Man

A way to focus on a marker rather than the playable unit when briefing start.

Recommended Posts

I have a pre init function that randomly choose a marker and i want to focus on it rather than on the inital position of the playable unit when briefing is shown. Any ideas?

Share this post


Link to post
Share on other sites
//In your preInit function

_h = [] spawn {
	disableSerialization;
	waitUntil{ getClientStateNumber >= 9 /*"BRIEFING SHOWN"*/ };
	
	_mrkPos = getMarkerPos "SomeMarker";

	_map = findDisplay 52 displayCtrl 51;
	//Change 0.05( zoom ) to desired level to frame marker as you wish
	_map ctrlMapAnimAdd[ 1, 0.05, _mrkPos ]; 
	ctrlMapAnimCommit _map;
};

 

  • Like 2
  • Thanks 1

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

×