Purzel 35 Posted July 9, 2014 (edited) Hi there, Is it possible to change the name of a unit into another name? I need this for a mission, where this "special" unit joins my team and i need to protect it. (I don´t mean the group-id like "Alpha" or the units description...!) See picture below: Thx Purzel Edited July 9, 2014 by Purzel Share this post Link to post Share on other sites
IndeedPete 1038 Posted July 9, 2014 setIdentity is your friend. :) Share this post Link to post Share on other sites
TittErS 13 Posted July 9, 2014 Hi, If it's in solo game, looks setName. Share this post Link to post Share on other sites
IndeedPete 1038 Posted July 9, 2014 I've had some issues with getting setName to work (in SP!), but maybe they fixed it now. The wiki entry has been updated for sure since my last visit. Share this post Link to post Share on other sites
Purzel 35 Posted July 10, 2014 THX guys - I´ve got it...! :) Share this post Link to post Share on other sites
Djonny344 1 Posted October 1, 2016 Hi Guys i've spawned a unit using : _io2 = [getmarkerpos "Spawn_Marker", EAST, ["O_G_Survivor_F"],[],[],[],[],[],180] call BIS_fnc_spawngroup; the question is how do i change its name from O_G_Survivor_F to io2 so that i can place a trigger condition : !alive io2 Thnx Share this post Link to post Share on other sites
davidoss 552 Posted October 1, 2016 The BIS_fnc_spawngroup returns group not unit. Either use createGroup + createUnit or if you want it as is you need extract unit of returned group If you want to use your condition in some other code ie trigger you need to make the variable global _io2 = [getmarkerpos "Spawn_Marker", EAST, ["O_G_Survivor_F"],[],[],[],[],[],180] call BIS_fnc_spawngroup; io2unit = ((units _io2) select 0); !alive io2unit If you need the condition in the same script you can use local variable _io2 = [getmarkerpos "Spawn_Marker", EAST, ["O_G_Survivor_F"],[],[],[],[],[],180] call BIS_fnc_spawngroup; _io2unit = ((units _io2) select 0); !alive _io2unit Share this post Link to post Share on other sites
Djonny344 1 Posted October 1, 2016 Thanks davidoss You've been a great help. Share this post Link to post Share on other sites