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
Level Editor Help Fatal error sound entity
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#1
Fatal error sound entity

When i start my map i get the error:
FATAL ERROR: Could not load script file
'custom_stories/newmap/custom_stories/newmap/maps/newmap.hps'
!
main (15,2) : ERR : No matching signatures to
'PlaySoundAtEntity(string@&, string@&, string@&, string@&, const bool)'

Script:

////////////////////////////
// Run first time starting map
void OnStart()
{

}

////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "key1", "door1", "UsedKeyOnDoor", true);
}

void MyFunc(string &in asName, int alCount)
{
SetSwingDoorLocked("door1", false, true);
PlaySoundAtEntity("", "unlock_door", "door1", "0", false);
RemoveItem("key1");
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}

Whats wrong here? This is my first map so im a bit newbie.

I fixed some other issues. This is the only one i cant figure out...

EDIT: Okay DANG IT! I found it myself again... took some time but, i guess i should not post threads about scripts before im completely lost...
What i had to do was make the 0 with no quotes.
PlaySoundAtEntity("", "unlock_door", "door1", 0, false);

Trying is the first step to success.
(This post was last modified: 03-08-2012, 08:52 PM by FlawlessHappiness.)
03-08-2012, 08:14 PM
Find




Users browsing this thread: 1 Guest(s)