Frictional Games Forum (read-only)
[SCRIPT] Problem with timing script... - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SCRIPT] Problem with timing script... (/thread-12500.html)

Pages: 1 2


RE: Problem with timing script... - MissMarilynn - 01-10-2012

(01-10-2012, 05:07 AM)flamez3 Wrote: Replace 01_amb_darkness.ogg to 02_amb_safe.ogg.

Now go to

void intro4(string &in asTimer)
{
SetMessage("Intro", "Beginning3", 5);
AddTimer("", 6, "intro3");
}

And Add StopMusic(float afFadeTime, int alPrio);

It would look like this:

Quote:void intro4(string &in asTimer)
{
SetMessage("Intro", "Beginning3", 5);
AddTimer("", 6, "intro3");
StopMusic(6.0f, 1);
}
And at

void intro3(string &in asTimer)
{
FadeIn(2);
}

Add PlayMusic("01_amb_darkness.ogg", true,1.0f, 2.0f, 0, true);

It would look like this:

Quote:void intro3(string &in asTimer)
{
FadeIn(2);
PlayMusic("01_amb_darkness.ogg", true,1.0f, 2.0f, 0, true);
}
Hurray! Thank you so much for walking through this with me.

You don't perchance know how to add images along with the text do you? I'm looking everywhere but I can't seem to find any scripting for it. I know how to add images to the loading page but not the fade in/out...


RE: Problem with timing script... - flamez3 - 01-10-2012

I'm not sure you can. You would have to make a billboard with the appropriate .mat file. Then again, I'm not even sure you can set them unactive.


RE: Problem with timing script... - MissMarilynn - 01-10-2012

(01-10-2012, 06:03 AM)flamez3 Wrote: I'm not sure you can. You would have to make a billboard with the appropriate .mat file. Then again, I'm not even sure you can set them unactive.
Aaah that's alright. Thanks for all your help!


RE: Problem with timing script... - Khyrpa - 01-10-2012

(01-10-2012, 06:03 AM)flamez3 Wrote: I'm not sure you can. You would have to make a billboard with the appropriate .mat file. Then again, I'm not even sure you can set them unactive.
You can set a billboard active or unactive by connecting it to a light and changing that lights color with FadeLightTo



RE: Problem with timing script... - flamez3 - 01-10-2012

(01-10-2012, 06:15 AM)Khyrpa Wrote:
(01-10-2012, 06:03 AM)flamez3 Wrote: I'm not sure you can. You would have to make a billboard with the appropriate .mat file. Then again, I'm not even sure you can set them unactive.
You can set a billboard active or unactive by connecting it to a light and changing that lights color with FadeLightTo
wow, thanks; great tip Big Grin