(solved - GetUnitAttribute) Quick Q - How do I find out where a unit is?

Started by Clean0nion, December 05, 2013, 03:37:24 PM

Previous topic - Next topic

Clean0nion

I have the UID of a unit. How do I find its coords?

kwinse

#1
<-UID CONST_COORDX GetUnitAttribute <-UID CONST_COORDY GetUnitAttribute

If I'm understanding the docs right anyway. EDIT: Not sure if you need quotes around the CONSTs or not...

Clean0nion

Quote from: kwinse on December 05, 2013, 03:45:55 PM
<-UID CONST_COORDX GetUnitAttribute <-UID CONST_COORDY GetUnitAttribute

If I'm understanding the docs right anyway. EDIT: Not sure if you need quotes around the CONSTs or not...
Thank you very much! I never considered GetUnitAttribute. And no, you don't. They're not even case-sensitive.
Thanks!