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
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#7
RE: FATAL ERROR: Could not load script file

Where do you want these sound effects? If you just want ambience stuff, here are some suggestions.

If you want for example critter noises in a certain room, add a script area there and use the PlaySoundAtEntity() function on it. Alternatively you can use the editor "Sound" object. Make sure you select a looping sound, or else it's likely not going to be noticed.

If you want a random wind or thunder sound play as the player walks by, add a script area with a collision callback for the player. In the callback, run a PlaySoundAtEntity() function. That function can be used to make the sound play from a certain source in the map. If you just need a sound that doesn't use 3D, you can use PlayGuiSound() but that's mostly for player gasp sounds and such.

10-03-2015, 09:40 PM
Find


Messages In This Thread
RE: FATAL ERROR: Could not load script file - by Mudbill - 10-03-2015, 09:40 PM



Users browsing this thread: 1 Guest(s)