#Does `SetSequence()` not work?
1 messages · Page 1 of 1 (latest)
you cant play sequences directly outside of particle effects and scene maps.
the SetSequence function will probably work for something that doesnt have ANY animation activities (or at least none that auto-play, like idle), but for everything else valves animation system will override your SetSequence and reset it next frame
Damn. ty
Lol, I found a way to do it. Just start the activity gesture that CAN run that sequence, then SetSequence(). Then it works just fine.
Valve is slowly removing support for all the API that can be found here: https://developer.valvesoftware.com/wiki/Source_2_Animation_System_VScript_API so don't be suprised if it stops working some day. For example they removed GetSequence recently.