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 Play Area.
heyitsrobert97 Offline
Member

Posts: 68
Threads: 29
Joined: Jan 2012
Reputation: 0
#1
[SCRIPT HELP] Music Play Area.

Hello I need some help with my Custom Map level_01.hps file i written it but then it says expected identifier

void OnStart()
{
AddEntityCollideCallback("Player", "musicareabasement", "MusicPlay", true, 1);

}


MusicPlay("Player", "musicareabasement", 0);

PlayMusic("Music_01.ogg" , true , 10 , 2.0f , 0 , true);

Its my first script ever and that is all that is in the file but at (8,10) and (10,10) it says ERR: Expected Identifier.Exclamation

Can someone please help me?Sad

This Darn House! , Four Doors, Youtube
01-11-2012, 06:42 AM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: [SCRIPT HELP] Music Play Area.

You have done void OnStart right but you have no syntax or void. Use this:

Quote:void OnStart()
{
AddEntityCollideCallback("Player", "musicareabasement", "MusicPlay", true, 1);

}

void MusicPlay(string &in asParent, string &in asChild, int alState)
{
PlayMusic("Music_01.ogg" , true , 10 , 2.0f , 0 , true);

}

For future reference, post anything that you need help in http://www.frictionalgames.com/forum/forum-39.html

(This post was last modified: 01-11-2012, 07:00 AM by flamez3.)
01-11-2012, 06:57 AM
Find
heyitsrobert97 Offline
Member

Posts: 68
Threads: 29
Joined: Jan 2012
Reputation: 0
#3
RE: [SCRIPT HELP] Music Play Area.

THANK YOU SO MUCH!!! you are a lifesaver and ill take ur advice Big Grin

This Darn House! , Four Doors, Youtube
01-11-2012, 07:06 AM
Find




Users browsing this thread: 2 Guest(s)