• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Scaling Size of Mirror Image Copies

Status
Not open for further replies.
Level 7
Joined
May 30, 2018
Messages
290
I have a big unit (increased default size through tigger, depending on the units level), that can use Mirror Image. The copies that are created don't have the size of the caster, they keep the default size of the caster. (before he gained size)

Is there a way around this - to scale the mirror image copies accordingly to the current size of the hero?
 
Level 5
Joined
Jul 31, 2020
Messages
103
  • Increase Size
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set VariableSet currentSize = 150.00
      • Animation - Change Blademaster 0000 <gen>'s size to (currentSize%, currentSize%, currentSize%) of its original size
  • Scale Images
    • Events
      • Unit - A unit owned by Player 1 (Red) Spawns a summoned unit
    • Conditions
      • (Unit-type of (Summoned unit)) Equal to (Unit-type of (Summoning unit))
    • Actions
      • Animation - Change (Summoned unit)'s size to (currentSize%, currentSize%, currentSize%) of its original size
 
Level 7
Joined
May 30, 2018
Messages
290
  • Increase Size
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set VariableSet currentSize = 150.00
      • Animation - Change Blademaster 0000 <gen>'s size to (currentSize%, currentSize%, currentSize%) of its original size
  • Scale Images
    • Events
      • Unit - A unit owned by Player 1 (Red) Spawns a summoned unit
    • Conditions
      • (Unit-type of (Summoned unit)) Equal to (Unit-type of (Summoning unit))
    • Actions
      • Animation - Change (Summoned unit)'s size to (currentSize%, currentSize%, currentSize%) of its original size
Thanks!
 
A more generic solution would be to use the following action:

  • Set VariableSet Test_Var = ((Unit: (Triggering unit)'s Real Field: Scaling Value ('usca')) x 100.00)
  • Animation - Change (Triggering unit)'s size to (Test_Var%, Test_Var%, Test_Var%) of its original size
Test_Var is set to the scaling value of the desired unit times 100 if corrections are needed.
 
Level 5
Joined
Jul 31, 2020
Messages
103
A more generic solution would be to use the following action:

  • Set VariableSet Test_Var = ((Unit: (Triggering unit)'s Real Field: Scaling Value ('usca')) x 100.00)
  • Animation - Change (Triggering unit)'s size to (Test_Var%, Test_Var%, Test_Var%) of its original size
Test_Var is set to the scaling value of the desired unit times 100 if corrections are needed.

If you dislike optimal performance, surely.
 
Status
Not open for further replies.
Top