Gunrock Posted September 11, 2019 Hey! I created an animated texture that has a total of 4 frames in my animdefs file. How can I use scripting to activate this animated sequence when the player crosses a line? Sorry guys for all the newb questions. 0 Share this post Link to post
Gez Posted September 11, 2019 Do you want the sequence to play once, or to loop forever once activated? In either case I'd suggest using your script to use SetLineTexture. The line could start with a normal (non-animated) texture and when the player crosses the line, it's replaced with the animated one. If you don't want the animation to loop, just set a very long duration for the last frame, and your script can also change the texture again after enough time has passed for the animation to be over. 0 Share this post Link to post
Gunrock Posted September 12, 2019 Thanks Gez! I wanted the script to play all 4 frames only once when a line is crossed. 0 Share this post Link to post