-.Paradox.- Posted October 31, 2013 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) If you're looking for a cheap paid scripter, don't hesitate to contact me. Great minds discuss ideas, Average minds discuss events and small minds discuss people.
csiguusz Posted November 1, 2013 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. Owner of [HUN]Magyar Play Szerver 1.4, IP: 31.220.43.153:22003
-.Paradox.- Posted November 1, 2013 Author Posted November 1, 2013 thanks If you're looking for a cheap paid scripter, don't hesitate to contact me. Great minds discuss ideas, Average minds discuss events and small minds discuss people.
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