pexmo 1 Posted August 12, 2005 hello im trying tofigure out how i can get the name of a addon unit type. What i meen is that the basic soldier is "named" SoldierWB I want to get that name on addon units. Where can i find this in configs etc. And what is this "name" actualy called? EDIT: Ok i think i got that its called classname Share this post Link to post Share on other sites
lATE 0 Posted August 12, 2005 hint format ["%1",typeOf unitname] Share this post Link to post Share on other sites
pexmo 1 Posted August 12, 2005 Where do i enter that? i tried to do it in the init field of the unit but nothing happened when i preview the mission. Share this post Link to post Share on other sites
TeRp 1 Posted August 12, 2005 for the init line use this one: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">hint format ["%1",typeOf this] You can also give the unit a name (e.g. Soldier) and use the line <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">hint format ["%1",typeOf Soldier] Cheers, TeRp Share this post Link to post Share on other sites
pexmo 1 Posted August 13, 2005 thx a gazillion mate! Share this post Link to post Share on other sites