i we're looking how to swap alchemist normal model into rage one, after some research i saw that people were using gesture
parent:StartGesture(ACT_DOTA_ALCHEMIST_CHEMICAL_RAGE_START)
and
self.parent:StartGesture(ACT_DOTA_ALCHEMIST_CHEMICAL_RAGE_END)
Somehow, mine just do the model change for smth like 1 second and then swap back to the original one, what im doing wrong?
self:OnRefresh()
if not IsServer() then return end
local parent = self:GetParent()
parent:StartGesture(ACT_DOTA_ALCHEMIST_CHEMICAL_RAGE_START)
self:StartIntervalThink(1.0)
self.pfx = ParticleManager:CreateParticle("particles/units/heroes/hero_troll_warlord/troll_warlord_battletrance_buff.vpcf", PATTACH_ABSORIGIN_FOLLOW, parent)
self:AddParticle(self.pfx, false, false, -1, false, false)
parent:EmitSound("Hero_TrollWarlord.BattleTrance.Cast")
self:PlayEffects()
end```
```function modifier_antaurus_mask_buff:OnDestroy()
if not IsServer() then return end
local parent = self:GetParent()
self.parent:StartGesture(ACT_DOTA_ALCHEMIST_CHEMICAL_RAGE_END)
end```