I've just found some time to experiment with what I am assuming is vjass... structs. The simplest of all vjass I know, but that's why I'm starting there before moving on to stuff i don't really need.
Could someone please tell me in simple terms, how I would use a struct in conjunction with a unit. Say I have:
struct attribute
(public?) real strength
(public?) real mass
endstruct
and the unit, such as Hero.
How would I go about creating the struct for that unit, and then calling it or finding say, the strength of Hero in other triggers or functions?
I would be hugely grateful for anyone who can give me a simple concise explanation.
:Just imagine a big smiley face here giving you a giant cookie.:
Could someone please tell me in simple terms, how I would use a struct in conjunction with a unit. Say I have:
struct attribute
(public?) real strength
(public?) real mass
endstruct
and the unit, such as Hero.
How would I go about creating the struct for that unit, and then calling it or finding say, the strength of Hero in other triggers or functions?
I would be hugely grateful for anyone who can give me a simple concise explanation.
:Just imagine a big smiley face here giving you a giant cookie.: