• Need help with playing multiple view model animations
    2 replies, posted
A view model that i'm trying to port has it's reload animations split into three parts. I would like them to play one after another, so far I have come up with this code but all three animations play way too fast so the animations get cut off. Is there any way to make a delay between each reload function or is there a better way to go about this? [CODE]function SWEP:Reload() self.Weapon:Reload1() self.Weapon:Reload2() self.Weapon:Reload3() end function SWEP:Reload1() self.Weapon:DefaultReload(ACT_SHOTGUN_RELOAD_START) end function SWEP:Reload2() self.Weapon:DefaultReload(ACT_VM_RELOAD) end function SWEP:Reload3() self.Weapon:DefaultReload(ACT_SHOTGUN_RELOAD_FINISH) end [/CODE]
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/timer/Simple]timer.Simple[/url] and [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/SequenceDuration]Entity:SequenceDuration[/url]?
Make sure you add a fraction of a second after the sequence time, some animations are made poorly and get wonky when played in rapid succession.
Sorry, you need to Log In to post a reply to this thread.