- Joined
- Feb 27, 2007
- Messages
- 5,578
ImpaleTargetDust.mdl is made up of two 'floofs' of dust separated by a brief delay. When scaling this model with BlzSetSpecialEffectScale() the first floof scales properly, but the second one does not scale at all! I found the same behavior when giving a unit this model and scaling the unit in the OE or with SetUnitScale(). Is this some sort of problem with particles I'm unaware of? It seems very weird that only part of this doesn't scale....
A short demo is below. Press Esc to spawn a 10% scale version of the effect, watch for both floofs, then see a 500% scale version of the effect with the same second floof.
A short demo is below. Press Esc to spawn a 10% scale version of the effect, watch for both floofs, then see a 500% scale version of the effect with the same second floof.
JASS:
library ImpaleBug initializer init
private function foo takes nothing returns nothing
local effect e = AddSpecialEffect("Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl", 0., 0.)
call BlzSetSpecialEffectScale(e, 0.1)
//call DestroyEffect(e)
call TriggerSleepAction(3.)
set e = AddSpecialEffect("Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl", 0., 0.)
call BlzSetSpecialEffectScale(e, 5.)
//call DestroyEffect(e)
endfunction
private function init takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerRegisterPlayerEvent(t, Player(0), EVENT_PLAYER_END_CINEMATIC)
call TriggerAddAction(t, function foo)
endfunction
endlibrary