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 Sounds and monster
NaxEla Offline
Senior Member

Posts: 415
Threads: 5
Joined: Dec 2012
Reputation: 28
#4
RE: Sounds and monster

break_wood_metal2.snt and 20_event_darkness.snt don't actually exist. Both those files have a .ogg extension. And also, as tonitoni1998 said, it's better to use PlaySoundAtEntity for playing sounds.

So for the sound, you would write:
PHP Code: (Select All)
PlaySoundAtEntity("""break_wood_metal.snt""Player"0false); //"Player" is the entity it's played at 

For the event music, use PlayMusic:
PHP Code: (Select All)
PlayMusic("20_event_darkness"false1010false); 

In Ruins [WIP]
03-14-2013, 10:10 PM
Find


Messages In This Thread
Sounds and monster - by Knusper. - 03-14-2013, 08:49 PM
RE: Sounds and monster - by tonitoni1998 - 03-14-2013, 09:22 PM
RE: Sounds and monster - by Knusper. - 03-14-2013, 09:45 PM
RE: Sounds and monster - by NaxEla - 03-14-2013, 10:10 PM
RE: Sounds and monster - by Knusper. - 03-14-2013, 10:24 PM
RE: Sounds and monster - by ingedoom - 03-15-2013, 02:38 PM
RE: Sounds and monster - by Knusper. - 03-15-2013, 02:51 PM
RE: Sounds and monster - by Knusper. - 03-19-2013, 05:03 PM
RE: Sounds and monster - by ingedoom - 03-20-2013, 12:37 AM
RE: Sounds and monster - by Knusper. - 03-20-2013, 12:45 PM
RE: Sounds and monster - by PutraenusAlivius - 03-20-2013, 01:21 PM
RE: Sounds and monster - by Knusper. - 03-20-2013, 03:13 PM



Users browsing this thread: 1 Guest(s)