-.Paradox.- Posted October 31, 2013 Share Posted October 31, 2013 Hello, i made this script to set the fadecamera when player is in slowmotion but i want it to flash i mean make the screen red and after 1 second come back to normal and after 1 sec will be red and etc thanks addEvent("fadeCamera", true) addEventHandler("fadeCamera", root, function () fadeCamera ( source, false, 1.0, 255, 0, 0 ) setTimer ( fadeCamera, 500, 1, source ) end) Link to comment
csiguusz Posted November 1, 2013 Share Posted November 1, 2013 Do you mean something like this? local faded = false function fade ( player ) if faded then fadeCamera ( player, true ) else fadeCamera ( player, false, 1, 255, 0, 0 ) end faded = not faded end addEvent("fadeCamera", true) addEventHandler("fadeCamera", root, function () setTimer ( fade, 1000, 10, source ) end) You can play around with the numbers or even assign then timer to a variable and give it infinite repetions and then kill it when you want. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now