Nutulator Posted July 1, 2018 Share Posted July 1, 2018 (edited) So basically there are two animations on an object and I want to toggle between them through an activator. The animation is of the object moving and the other is a stop animation. So when the moving animation is working and I select the object I want the stop animation to play and when I select it again I want the moving animation to play. How will the script to do this look like? I guessing I'm going to have to use some booleans and whatnot but I don't know how to start it off. Both are gamebryo animations and I'm using the Self.PlayGamebryoAnimation(AnimName, abStartOver = True) line to call them with AnimName being a String Property. Thanks. Edited July 1, 2018 by Nutulator Link to comment Share on other sites More sharing options...
shavkacagarikia Posted July 1, 2018 Share Posted July 1, 2018 Like this: Bool toggle Event OnActivate(ObjectReference akRef) If !toggle Playgamebryoanimation(anim1) toggle = true Else Playgamebryoanimation(anim2) toggle = false EndifEndevent Link to comment Share on other sites More sharing options...
Nutulator Posted July 1, 2018 Author Share Posted July 1, 2018 Works perfectly. Thanks a lot! Link to comment Share on other sites More sharing options...
Recommended Posts