Jump to content

Recommended Posts

Having had a look around, and having never dabbled in squad.xml files, I've come to the hopeful conclusion that the following will add a squad's picture to a flag, if one exists:

 

initServer:

if (count (squadParams (leader _playerGroup)) > 0) then {
	if ((((squadParams (leader _playerGroup)) select 0) select 4) != "") then {
		_flag setFlagTexture (((squadParams (leader _playerGroup)) select 0) select 4);
	};
};

 

The aim is to have a player's squad picture assigned to a flag at the beginning of a mission. Will this work?

 

Thanks.

Share this post


Link to post
Share on other sites

why not just load them as flag as .paa??

Share this post


Link to post
Share on other sites

This is worth a try:

_flag setFlagTexture = [ player ] call BIS_fnc_getUnitInsignia

 

  • Like 2

Share this post


Link to post
Share on other sites

The original example works, just make sure you test it on at least locally hosted MP, not in SP editor.

 

lEKkHT1.png

 

Cheers

  • Like 1
  • Haha 4

Share this post


Link to post
Share on other sites

Thanks guys. When I'm off shift in a few days I'll have a go at setting up a squad.xml and try them out. 

Share this post


Link to post
Share on other sites

That flag... :rofl:

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

×