Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Gunrock

Using a script to activate a 4 frame animated texture

Recommended Posts

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.

 

Share this post


Link to post

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.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×