Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
FOX Dome

Unique insignias for players

Recommended Posts

Hi all,

I have a simple Question may someone can awnser

its for a mission, is it possible to give a Player (With player-ID) a Insignia via script?

So for example:

Member A gets his unique insignia

Member B gets his unique insignia

Member C gets his unique insignia

and so on ...

?

Share this post


Link to post
Share on other sites

Would be great if your title would be more self explanatory. As for your question: Look into the Arsenal and see how it's done there (which command is used, I cant remember the exact one), and just put it in the units INIT or call it via sqf.

Share this post


Link to post
Share on other sites
Hi all,

I have a simple Question may someone can awnser

its for a mission, is it possible to give a Player (With player-ID) a Insignia via script?

So for example:

Member A gets his unique insignia

Member B gets his unique insignia

Member C gets his unique insignia

and so on ...

?

Yes.

https://community.bistudio.com/wiki/Arma_3_Unit_Insignia

You must add the insignia textures to the mission folder and add a class entry in description.ext.

https://community.bistudio.com/wiki/Description.ext#CfgUnitInsignia

description.ext

class CfgUnitInsignia
{
class rammySignia //rammys insignia class name
{
	displayName = "Rammys patch"; // Name displayed in Arsenal
	author = "rAMMY"; // Author displayed in Arsenal
	texture = "rammy.paa"; // Image path
	textureVehicle = ""; // Does nothing currently, reserved for future use
};

       class buddySignia //rammys buddy insignia class name
{
	displayName = "Rammys buddy patch"; // Name displayed in Arsenal
	author = "rAMMY"; // Author displayed in Arsenal
	texture = "rammybuddy.paa"; // Image path
	textureVehicle = ""; // Does nothing currently, reserved for future use
};
};

Then you'd need to add a player UID check to the units.

https://community.bistudio.com/wiki/getPlayerUID

https://community.bistudio.com/wiki/switch_do

Insigniacheck.sqf

_uid = getPlayerUID player; //get the player unique ID

switch (_uid) do //compare the player unique ID against...
{
     case rammyplayeridnumber:  // ...rAMMYS ID and...
     {
        [player,"rammySignia"] call bis_fnc_setUnitInsignia; // ...give him this insignia if it matches
        hintC "Welcome back rAMMY! Enjoy your insignia!"; //..give an annoying message to make him feel good
     };

     case buddyplayeridnumber: // ..rAMMYs buddy ID and...
     {
        [player,"buddySignia"] call bis_fnc_setUnitInsignia; // ...give him the other insignia if it matches
        hintC "Welcome back friend of rAMMY! Enjoy your insignia!"; //..give an annoying message to make him feel good
     };

     default // what to do if no ID matches?
     {
      // Nothing! No patch for you!
      hintC "Become a member to get a patch!"; //..give an annoying message to make them feel bad
     };
};

That should get you started. Didn't test it, probably not multiplayer compatible.

Edited by L3TUC3

Share this post


Link to post
Share on other sites

ok sry 4 the title...

and @ L3TUC3

thx will try it after work

edit: nope wont work we all got the "Become a member to get a patch" massage ^^

edit2 : works sry was to dump to use it...

Edited by rAMMY

Share this post


Link to post
Share on other sites

I already have a different idea, a script that takes the player ID and put a badge with your name, and the identification of the player would be easier and real

Share this post


Link to post
Share on other sites
Sign in to follow this  

×