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
MarkoJ Offline
Junior Member

Posts: 9
Threads: 1
Joined: Oct 2015
Reputation: 0
#21
RE: FATAL ERROR: Could not load script file

I wish I understood you correctly, but I've never scripted before like ever. So it's kinda hard for me to understand what all of this commands mean..
10-08-2015, 09:56 PM
Find
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"true1);
}

void Function(string &in asParentstring &in asChildint alState)
{
PlaySoundAtEntity("""NAMEOFSOUND""Player"0.0ffalse);
PlaySoundAtEntity("""NAMEOFSOUND2""Player"0.0ffalse);
PlaySoundAtEntity("""NAMEOFSOUND3""Player"0.0ffalse);


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
MarkoJ Offline
Junior Member

Posts: 9
Threads: 1
Joined: Oct 2015
Reputation: 0
#23
RE: FATAL ERROR: Could not load script file

Alright, thanks for your help Smile


[Image: W13y8tBs.png?1]


(This post was last modified: 10-08-2015, 10:18 PM by MarkoJ.)
10-08-2015, 10:12 PM
Find




Users browsing this thread: 3 Guest(s)