tuantai120
Cool Member
- Reaction score
- 1
play many animations in a timer (0.04s) and Missing : endblock ?
i really dont know how to play many animations in a timer
ex : play animations "attack" and "spell" many times
this is the code of a spell with have 1 timer ( work )
this is the code of a the spell with have 2 timer ( not work )
and what is "Missing : endblock" ?
please help me
i really dont know how to play many animations in a timer
ex : play animations "attack" and "spell" many times
JASS:
set d.random = GetRandomInt(1,3)
set d.random = d.random + 1
if d.random == 1 then
call SetUnitAnimation(d.trunks,a1)
else
if d.random == 2 then
call SetUnitAnimation(d.trunks,a1)
endif
endif
this is the code of a spell with have 1 timer ( work )
JASS:
set data.random = GetRandomInt(1,3)
set data.random = data.random + 1
call DestroyEffect(AddSpecialEffectTarget(SFX4,data.target,"chest"))
call DestroyEffect(AddSpecialEffectTarget(SFX5,data.target,"chest"))
if data.random == 1 then
call SetUnitAnimation(data.broly,"attack")
else
if data.random == 2 then
call SetUnitAnimation(data.broly,"attack")
else
call SetUnitAnimation(data.broly,"spell throw")
endif
endif
this is the code of a the spell with have 2 timer ( not work )
and what is "Missing : endblock" ?
please help me