Ok, last easy question for the night! I am trying to set a variable to a unit's life or shield amount. What I am wondering is, what kind of variables would these be and where can I find them? I tried Integer but I couldn't find what I wanted. Can anyone help?
Ok, last easy question for the night! I am trying to set a variable to a unit's life or shield amount. What I am wondering is, what kind of variables would these be and where can I find them? I tried Integer but I couldn't find what I wanted. Can anyone help?
took me a lot of time a few days ago to find it.
it is an integer and a unit function. should be something like "unit show poperties" in english
@b0ne123: Go
Tyvm!
Edit: Unfortunately all I could find when I searched for 'prop' in the value selection for the variable were:
Player Property Training Queue Property Transport Property
You can't use an integer - you have to use a Real. Reals store real information, such as health, etc.
Create a Real variable and do:
Set myVariable = Unit Property (Health of Triggering Unit (Current))
Or whatever you want.
Hope this helps!
@Beasttamer: Go
Yes indeed! Wasn't sure if it was real or integer but now I know. Thanks!
Anytime. :)