ItsyPet Downloads Here!
I would like an object to play an animation, then revert to a different state when it's done, How?
Published on October 19, 2005 By ItsyLady In DesktopX
Sorry, this is probably a dumb question, but how can you make one state of an object run an animation then revert to a different state? I was thinking something in the way of a timer script, but I just started so I don't know how to do that.

Please help me!

Thanks, everyone!

Comments
on Oct 20, 2005
Sub Object_OnScriptEnter
Object.SetTimer 2, Your time in seconds times a thousand here
End Sub

Sub Object_OnTimer2
If Object.State = "AnimationStateNameHere" Then
Object.State = "RevertToThisState"
End If
End Sub

This seems to work...just in case anyone else has this problem