- 24 Фев 2018
- 6
- 0
Всех приветствую. Кто-то может подсказать почему не проигрывается звук при использовании абилки?
Партиклы создаются, все ок, но звука нету мультикастов
HTML:
ab:OnSpellStart()
mult = mult-1
if mult > 1 then
return delay
end
end
end, DoUniqueString('multicast'))
end
local prt = ParticleManager:CreateParticle('particles/units/heroes/hero_ogre_magi/ogre_magi_multicast.vpcf', PATTACH_OVERHEAD_FOLLOW, hero)
ParticleManager:SetParticleControl(prt, 1, Vector(mult, 0, 0))
ParticleManager:ReleaseParticleIndex(prt)
prt = ParticleManager:CreateParticle('particles/units/heroes/hero_ogre_magi/ogre_magi_multicast_b.vpcf', PATTACH_OVERHEAD_FOLLOW, hero:GetCursorCastTarget() or hero)
prt = ParticleManager:CreateParticle('particles/units/heroes/hero_ogre_magi/ogre_magi_multicast_b.vpcf', PATTACH_OVERHEAD_FOLLOW, hero)
ParticleManager:ReleaseParticleIndex(prt)
prt = ParticleManager:CreateParticle('particles/units/heroes/hero_ogre_magi/ogre_magi_multicast_c.vpcf', PATTACH_OVERHEAD_FOLLOW, hero:GetCursorCastTarget() or hero)
ParticleManager:SetParticleControl(prt, 1, Vector(mult, 0, 0))
ParticleManager:ReleaseParticleIndex(prt)
hero:EmitSound('Hero_OgreMagi.Fireblast.x'..(mult-1))
Партиклы создаются, все ок, но звука нету мультикастов