Is there any way to pause an animation state midway through? Im trying to make a higher crouch but I need the animation to stop halfway from standing to crouching so it looks like only half a crouch.
I guess you could use both [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/GetCycle]Entity:GetCycle[/url] and [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/SetCycle]Entity:SetCycle[/url] to control starting and stopping of the animation. I'm pretty sure there is a way to control the speed of a sequence too but I don't remember how.
You would probably need to run what 0V3RR1D3 posted in some kind of a draw/think hook and set some kind of delay on the SetCycle, slowly incrementing it
[QUOTE=0V3RR1D3;52180513]I guess you could use both [url]http://wiki.garrysmod.com/page/Entity/SetCycle[/url] and [url]http://wiki.garrysmod.com/page/Entity/GetCycle[/url] to control starting and stopping of the animation. I'm pretty sure there is a way to control the speed of a sequence too but I don't remember how.[/QUOTE]
Off topic but just FYI, this button:
[img]http://i.imgur.com/PKMl0Ud.png[/img]
Produces this BBCode to paste on facepunch: [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/SetCycle]Entity:SetCycle[/url]
[QUOTE=NeatNit;52181883]Off topic but just FYI, this button:
[img]http://i.imgur.com/PKMl0Ud.png[/img]
Produces this BBCode to paste on facepunch: [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/SetCycle]Entity:SetCycle[/url][/QUOTE]
Cheers <#
[QUOTE=0V3RR1D3;52180513]I guess you could use both [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/GetCycle]Entity:GetCycle[/url] and [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/SetCycle]Entity:SetCycle[/url] to control starting and stopping of the animation. I'm pretty sure there is a way to control the speed of a sequence too but I don't remember how.[/QUOTE]
Speed of a sequence can be changed with UpdateAnimation
Sorry, you need to Log In to post a reply to this thread.