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 Music don't start in script
MrBehemoth Offline
Senior Member

Posts: 408
Threads: 19
Joined: Feb 2014
Reputation: 40
#3
RE: Music don't start in script

That's not exactly the problem.

MaksoPL, check the values you're using and the order you're using them in.

Remember, a float is a real number with a decimal fraction, and it always has a point (.) and ends in f. An int (integer) is a whole number with no fraction. E.g.:

float a = 1.0f;
float b = -0.5f;
float c =  3.1415926535f;

int x = 1;
int y = 0;
int z = -999;

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

I think your line of code should probably be this:

PlayMusic("12_event_blood", true, 1.0f, 1.0f, 1, true);

02-18-2015, 11:25 PM
Find


Messages In This Thread
Music don't start in script - by MaksoPL - 02-15-2015, 12:44 PM
RE: Music don't start in script - by MrBehemoth - 02-18-2015, 11:25 PM



Users browsing this thread: 1 Guest(s)