JapeyJapes
New Member
- Reaction score
- 1
Am I being dense, or is there no clear way to access a unit's properties in JASS?
I assumed a unit could be treated as a class or structure, and you could just use Unit.property to access anything about it (movement speed, animation backswing, etc)
What I want to do is make an ability that gives the target unit the sight radius of the caster. Why can't I just say:
Target.sight = Caster.sight
(assuming I have set the "Target" and "Caster" variables accordingly)
?
I'm sure there are ways to get the effect i want using items/dummy units etc but I'm sure there must be a neater way similar to what I've described, using JASS?
Any help would be appreciated.
I assumed a unit could be treated as a class or structure, and you could just use Unit.property to access anything about it (movement speed, animation backswing, etc)
What I want to do is make an ability that gives the target unit the sight radius of the caster. Why can't I just say:
Target.sight = Caster.sight
(assuming I have set the "Target" and "Caster" variables accordingly)
?
I'm sure there are ways to get the effect i want using items/dummy units etc but I'm sure there must be a neater way similar to what I've described, using JASS?
Any help would be appreciated.