Jump to content

Screen black with scripting


Recommended Posts

That is just for red, or should I have to use:

function addRednessOnDamage ( ) 
  
      fadeCamera ( source, false, 1.0, 0, 0, 0 )         -- fade the player's camera to red over a period of 1 second 
      setTimer ( fadeCamera, 500, 1, source, true, 0.5 )   -- don't let it go to opaque red, interrupt it after half a second and fade back to normal 
end 
addEventHandler ( "onPlayerDamage", getRootElement(), addRednessOnDamage ) 

?

Link to comment
  • 4 weeks later...

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...