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
Bizarre Music Error
AGP Offline
Senior Member

Posts: 448
Threads: 45
Joined: Dec 2012
Reputation: 23
#9
RE: Bizarre Music Error

(02-03-2013, 02:54 AM)NaxEla Wrote: You can make it so that when the player walks into a certain area, the music plays in the background.

PHP Code: (Select All)
void OnStart()
{
    
AddEntityCollideCallback("Player""hallking_area""HallKing"true1);
}

void HallKing(string &in parentstring &in childint state)
{
    
PlayMusic("hallking.ogg"true1.0f01true);


EDIT: The reason the hand shows up is because you probably have some text where it says PlayerInteractCallback in the area properties.

Tried it and still nothing plays. The hand is gone after deleting the callback function from the properties tab. This is really stumping!

I've used the PlaySoundAtEntity before in other scripts and they work, but for some reason this one is just not having it.

02-03-2013, 03:21 AM
Find


Messages In This Thread
Bizarre Music Error - by AGP - 02-03-2013, 02:04 AM
RE: Bizarre Music Error - by PutraenusAlivius - 02-03-2013, 02:31 AM
RE: Bizarre Music Error - by AGP - 02-03-2013, 02:35 AM
RE: Bizarre Music Error - by PutraenusAlivius - 02-03-2013, 02:38 AM
RE: Bizarre Music Error - by AGP - 02-03-2013, 02:40 AM
RE: Bizarre Music Error - by PutraenusAlivius - 02-03-2013, 02:52 AM
RE: Bizarre Music Error - by NaxEla - 02-03-2013, 02:54 AM
RE: Bizarre Music Error - by PutraenusAlivius - 02-03-2013, 03:00 AM
RE: Bizarre Music Error - by AGP - 02-03-2013, 03:21 AM
RE: Bizarre Music Error - by PutraenusAlivius - 02-03-2013, 03:27 AM
RE: Bizarre Music Error - by AGP - 02-03-2013, 03:46 AM
RE: Bizarre Music Error - by PutraenusAlivius - 02-03-2013, 03:54 AM
RE: Bizarre Music Error - by AGP - 02-03-2013, 04:18 AM
RE: Bizarre Music Error - by No Author - 02-03-2013, 05:18 AM
RE: Bizarre Music Error - by AGP - 02-03-2013, 05:20 AM
RE: Bizarre Music Error - by The chaser - 02-03-2013, 11:55 AM
RE: Bizarre Music Error - by No Author - 02-03-2013, 12:00 PM
RE: Bizarre Music Error - by The chaser - 02-03-2013, 12:20 PM



Users browsing this thread: 1 Guest(s)