If state is <span class='inline_code'>null</span>, it plays the <span class='inline_code'>"default"</span> animation. <div class='line_break'></div> If instant is true and it's a non-looping animation, then it goes to the last frame and stops. This is to allow looping animations to start, but animations like doors to go to the last frame of the curtent animation. <div class='line_break'></div> When an object's state changes, an optional callback to object.stateChange() is made. This allows the syncing of ot