Change Unit's projectile scale in-game

Status
Not open for further replies.
Level 7
Joined
Jun 1, 2009
Messages
125
Hi!
I need to change the unit's projectiles scale in-game.
When I change the unit scale in World Editor - everything is fine, its projectiles become bigger as intended.
But the in-game trigger changes only unit size, but his projectiles size remains intact:

  • Set VariableSet TempReal[7] = (Real((100 + (20 x TEI_INI))))
  • Animation - Change BOSS_DummyAdd[4]'s size to (TempReal[7]%, TempReal[7]%, TempReal[7]%) of its original size
Of course, there is a solution to create multiple copies of the unit with different scales and replace them one by one when needed.
But maybe there is a more… elegant way to achieve that?
Thanks!
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
Bear form ... will break attack animation while cast
Not bear form... reverse bear form: Hero passive transformation into another version of the same unit with a different scaling value.
Not really, I've just shorten this
You misunderstand me. A+Bi is complex number notation where i = sqrt(-1). Since I couldn't see an i variable being used in your first post it looks like a complex number. And incidentally complex numbers are very related to angles.
 
Level 7
Joined
Jun 1, 2009
Messages
125
reverse bear form: Hero passive transformation into another version of the same unit with a different scaling value.
This is a nice trick, but what if I need let's say, 100 scaling variants? If I understand it correct, it can provide two scaling numbers, from UnitType A and UnitType B.
You misunderstand me. A+Bi is complex number notation where i = sqrt(-1).
yup, should copy-paste it from WE, instead of being lazy :smile:
 
Status
Not open for further replies.
Top