| 10-23-2003, 11:02 PM | #1 |
I need the unit name of a unit that is in a unit-type variable to be set in another variable that is a string. Now to clearify: I have a unit-type variable array. The second Unit-type in the array is "Fel Orc Peon" but if you change the unit-type from the variable into a text string to display the unit-type it will show "chaospeon", so what I want is to know how I could do a "Set variable" action that would set my String Variable to "Fel Orc Peon" when it refrences my unit-type array #2. I got as far as: Set variable UnitNameString = Unit - Unit name (triggering unit) But I can't change "triggering unit" to my unit-type array. Any help would be appreciated. |
| 10-23-2003, 11:38 PM | #2 |
How about creating an invisibilified unit of the proper type in a corner somewhere, getting its name, and then removing it again? |
| 10-23-2003, 11:53 PM | #3 |
Duh... stupid me emote_sweat... I have NO idea why I didn't think of that myself... Stupid me.... Well I guess that solves my problem... (walks off muttering about how he should of thought of that) Thanx for pointing out the obviouse Bulletcatcher, I appearently was blind. :D |
