Please Help With Scripting

I would like an object to play an animation, then revert to a different state when it's done, How?

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!
1,884 views 1 replies
Reply #1 Top
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