Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Problem with timing script...
Author Message
MissMarilynn Offline
Member

Posts: 74
Joined: Oct 2011
Reputation: 0
Post: #11
RE: Problem with timing script...
(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...
01-10-2012 05:35 AM
Find all posts by this user Quote this message in a reply
flamez3 Offline
Posting Freak

Posts: 1,320
Joined: Apr 2011
Reputation: 57
Post: #12
RE: Problem with timing script...
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.

01-10-2012 06:03 AM
Find all posts by this user Quote this message in a reply
MissMarilynn Offline
Member

Posts: 74
Joined: Oct 2011
Reputation: 0
Post: #13
RE: Problem with timing script...
(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!
01-10-2012 06:04 AM
Find all posts by this user Quote this message in a reply
Khyrpa Offline
Senior Member

Posts: 615
Joined: Apr 2011
Reputation: 24
Post: #14
RE: Problem with timing script...
(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

01-10-2012 06:15 AM
Find all posts by this user Quote this message in a reply
flamez3 Offline
Posting Freak

Posts: 1,320
Joined: Apr 2011
Reputation: 57
Post: #15
RE: Problem with timing script...
(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

01-10-2012 06:19 AM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)