Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Problem with timing script...
MissMarilynn Offline
Member

Posts: 77
Threads: 23
Joined: Oct 2011
Reputation: 1
#9
RE: Problem with timing script...

(01-10-2012, 04:22 AM)flamez3 Wrote:
(01-10-2012, 04:18 AM)MissMarilynn Wrote:
(01-10-2012, 03:28 AM)flamez3 Wrote:
(01-10-2012, 03:18 AM)Statyk Wrote:
(01-10-2012, 02:25 AM)flamez3 Wrote: Take that for example. You have no function name or syntax. That would go in void OnStart() since you want that to happen when the game starts.
Don't apply the bolded area. that was a mistake flamez3 made =\
Ahhh sorry, didn't mean to apply that to the quote. I placed it in the correct place already and didn't look to see what I had quoted -.-. Sorry : D
It works!

One more question: The sound for my map comes up right away. How can I make music during the fade out time that disappears when the map loads and the map music starts after?
In
void intro3(string &in asTimer) , add

PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);
asMusicFile - the music to play + extension .ogg
abLoop - determines whether a music track should loop
afVolume - volume of the music
afFadeTime - time in seconds until music reaches full volume
alPrio - priority of the music. Note that only the music with the highest priority can be heard! 0 - highest, 1 - lower, etc

Taken from
http://wiki.frictionalgames.com/hpl2/amn..._functions

Also, you don't have playmusic in your script; did you place the music in the level editor? If so; delete that and add what I said before.
Well I have:

void OnEnter()

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

but I don't want that to play during the text. I want 02_amb_safe.ogg to play and fade after the text THEN have the map music show up. Is that a bit more complicated?
01-10-2012, 04:27 AM
Find


Messages In This Thread
Problem with timing script... - by MissMarilynn - 01-10-2012, 12:48 AM
RE: Problem with timing script... - by flamez3 - 01-10-2012, 01:04 AM
RE: Problem with timing script... - by flamez3 - 01-10-2012, 02:25 AM
RE: Problem with timing script... - by Statyk - 01-10-2012, 03:18 AM
RE: Problem with timing script... - by flamez3 - 01-10-2012, 03:28 AM
RE: Problem with timing script... - by flamez3 - 01-10-2012, 04:22 AM
RE: Problem with timing script... - by MissMarilynn - 01-10-2012, 04:27 AM
RE: Problem with timing script... - by flamez3 - 01-10-2012, 05:07 AM
RE: Problem with timing script... - by flamez3 - 01-10-2012, 06:03 AM
RE: Problem with timing script... - by Khyrpa - 01-10-2012, 06:15 AM
RE: Problem with timing script... - by flamez3 - 01-10-2012, 06:19 AM



Users browsing this thread: 1 Guest(s)