BlzSetSpecialEffectScale
- Parameters
-
whichEffect effect
effect to scale
scale real
scaling ratio (default: 1)
- comment
Sets the new scale. The entire model will be scaled based on this value. If the effect has a matrix scale set, the final scale will be a result of multiplication.
Negative values cause models to be mirrored along every axis (including rendering under terrain due to negative Z).
Example (Lua):
Have you ever thought to peek under the skirt of a sorceress? I know you did. Pervert...
-- Creates model facing east sorceress = AddSpecialEffect([[units\human\sorceress\sorceress.mdx]], 0,0) BlzSetSpecialEffectScale(sorceress, -2) -- the model is now underground facing west, upside down BlzSetSpecialEffectHeight(sorceress, 256) -- raise above the ground BlzSetSpecialEffectYaw(sorceress, 3.14/2) -- rotate to face south
- note
See:
BlzSetSpecialEffectMatrixScale
- patch
1.29.2.9231
- Source
- common.j
- return type
nothing
- Source code
native BlzSetSpecialEffectScale takes effect whichEffect, real scale returns nothing