What your after Bravo is
https://community.bistudio.com/wiki/setIdentity
You can also use "setName" ;)
---------- Post added at 17:45 ---------- Previous post was at 17:29 ----------
I just realized this thread was super old, so for those wondering, here is the code I use and it works 100% off of randomly generated Mercs. If you need more names, just add more "case" selections
_mercName = "";
_rand = round(random 3);
switch (true) do {
case (_rand == 0) : { _mercName = "Vincent Blanc"; };
case (_rand == 1) : { _mercName = "Marc Lepage"; };
case (_rand == 2) : { _mercName = "Guy Beauchard"; };
};
_unit setName _mercName; //replace _unit with whatever your unit is