Screen fade in/out script with delay

Post » Sat Jan 23, 2010 3:05 pm

I'm trying to make a little teleport script using custom switches, what I'm looking to have happen is once the switch is activated the screen goes black for "x" amount of time while a audio clip plays and then fades back to normal after the "x" timer has passed which is basically the duration of the sound clip. I've been trying different combinations of script commands and little things here and there that I've found searching on the forum here but nothing I put together seems to work.

I just recently started looking into the image modifiers and playing with some new ones I made but none of them work and I can't figure out how to get a time delay on the fade, I see duration on the image modifier but it doesn't seem to have any effect. What am I doing wrong?
User avatar
Lakyn Ellery
 
Posts: 3447
Joined: Sat Jan 27, 2007 1:02 pm

Post » Sat Jan 23, 2010 5:24 pm

anyone?
User avatar
CHangohh BOyy
 
Posts: 3462
Joined: Mon Aug 20, 2007 12:12 pm

Post » Sat Jan 23, 2010 12:30 pm

As you've found, you'll want to use an imagespace modifier for this. You can apply an imagespace modifier via http://geck.gamesas.com/index.php/ApplyImagespaceModifier. To animate an imagespace modifier, you'll need to drag the "Time" control to various different times and specify different parameters at different times. In this case, you'd want all parameters to be at their default values at the initial and end times, and tweak them so that the screen is black at two key times near each end, so a timeline would look something like this:
clear----black------------------------black----clear

You'll probably want to use http://geck.gamesas.com/index.php/DisablePlayerControls/http://geck.gamesas.com/index.php/EnablePlayerControls to restrain the player while the imagespace modifier is in effect.

Cipscis
User avatar
Joey Bel
 
Posts: 3487
Joined: Sun Jan 07, 2007 9:44 am

Post » Sat Jan 23, 2010 10:19 am

float timerBegin ScriptEffectStartset Timer to X             ;X is duraction of soundIMod BlackoutISFXDisableplayercontrolsplaysound BlackoutSoundendBegin ScriptEffectUpdateset Timer to (Timer - GetSecondsPassed)if Timer <= 0       Player.Dispel BlackoutSpellendifEndBegin ScriptEffectFinish        EnablePlayerControls  End

User avatar
Bereket Fekadu
 
Posts: 3421
Joined: Thu Jul 12, 2007 10:41 pm

Post » Sat Jan 23, 2010 12:23 pm

Thank you for the responses, I'll give these a try tonight!
User avatar
JUDY FIGHTS
 
Posts: 3420
Joined: Fri Jun 23, 2006 4:25 am


Return to Fallout: New Vegas