Jump to content
Sign in to follow this  
pexmo

getting a units "name"?

Recommended Posts

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×