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 FATAL ERROR: Could not load script file
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#22
RE: FATAL ERROR: Could not load script file

To answer your question. If you want more than one sound you could just put another one inside it.
PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player", "Area", "Function", true, 1);
}

void Function(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "NAMEOFSOUND", "Player", 0.0f, false);
PlaySoundAtEntity("", "NAMEOFSOUND2", "Player", 0.0f, false);
PlaySoundAtEntity("", "NAMEOFSOUND3", "Player", 0.0f, false);
} 

Easy peasy. But yes, you have to create a function for every place where you want something to happen (At least when you're new to scripting).

Trying is the first step to success.
10-08-2015, 10:00 PM
Find


Messages In This Thread
RE: FATAL ERROR: Could not load script file - by FlawlessHappiness - 10-08-2015, 10:00 PM



Users browsing this thread: 1 Guest(s)