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
OnEnter Music Start Playing 'I know stupid question xD'
VeNoMzTeamHysterical Offline
Member

Posts: 240
Threads: 36
Joined: Dec 2012
Reputation: 3
#1
OnEnter Music Start Playing 'I know stupid question xD'

Well its very strange but i forget how to let it play music xD
Even when i did it on my first custom story that was not even serious but just practicing.

If anyone could explain how to i would appreciate it Smile

http://www.frictionalgames.com/forum/thread-21719.html
Evil Awaking Work In Progress!
Hours Spend 472.
(This post was last modified: 03-19-2013, 07:59 PM by VeNoMzTeamHysterical.)
03-19-2013, 04:37 PM
Website Find
Unearthlybrutal Offline
Posting Freak

Posts: 775
Threads: 12
Joined: May 2011
Reputation: 26
#2
RE: OnEnter Music Start Playing 'I know stupid question xD'

Here.


void PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);

Plays music.
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 - lowest, 1 - higher, etc.
abResume - if true, playback will be continued from where the track stopped after the call to StopMusic(); if false, the track will be restarted.

When Life No Longer Exists
Full-conversion mod
03-19-2013, 04:44 PM
Website Find
VeNoMzTeamHysterical Offline
Member

Posts: 240
Threads: 36
Joined: Dec 2012
Reputation: 3
#3
RE: OnEnter Music Start Playing 'I know stupid question xD'

(03-19-2013, 04:44 PM)Unearthlybrutal Wrote: Here.


void PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);

Plays music.
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 - lowest, 1 - higher, etc.
abResume - if true, playback will be continued from where the track stopped after the call to StopMusic(); if false, the track will be restarted.
But what should the Entity be just an AddEntityCallback?

http://www.frictionalgames.com/forum/thread-21719.html
Evil Awaking Work In Progress!
Hours Spend 472.
03-19-2013, 04:52 PM
Website Find
Unearthlybrutal Offline
Posting Freak

Posts: 775
Threads: 12
Joined: May 2011
Reputation: 26
#4
RE: OnEnter Music Start Playing 'I know stupid question xD'

void OnStart()
{
PlayMusic("name of the song .ogg", true, 1, 1, 1, true);
}

When Life No Longer Exists
Full-conversion mod
(This post was last modified: 03-19-2013, 04:56 PM by Unearthlybrutal.)
03-19-2013, 04:56 PM
Website Find
VeNoMzTeamHysterical Offline
Member

Posts: 240
Threads: 36
Joined: Dec 2012
Reputation: 3
#5
RE: OnEnter Music Start Playing 'I know stupid question xD'

(03-19-2013, 04:56 PM)Unearthlybrutal Wrote: void OnStart()
{
PlayMusic("name of the song .ogg", true, 1, 1, 1, true);
}

Thanks now i understand

http://www.frictionalgames.com/forum/thread-21719.html
Evil Awaking Work In Progress!
Hours Spend 472.
03-19-2013, 04:58 PM
Website Find
Unearthlybrutal Offline
Posting Freak

Posts: 775
Threads: 12
Joined: May 2011
Reputation: 26
#6
RE: OnEnter Music Start Playing 'I know stupid question xD'

No problem Smile

When Life No Longer Exists
Full-conversion mod
03-19-2013, 04:59 PM
Website Find




Users browsing this thread: 1 Guest(s)