The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Playing multiple sounds In a function?
JoeBradleyUK Offline
Member

Posts: 115
Threads: 20
Joined: Jul 2011
Reputation: 0
#1
Playing multiple sounds In a function?

Multiple sounds won't play in my level in this function, the banging sound won't play some odd reason, any ideas? Here is the part of the script that doesn't work:

void Storage_Scream_2(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "react_scare.snt", "Player", 0, false);
PlaySoundAtEntity("", "15_bang1.ogg", "cellar_wood01_4", 0, false);
GiveSanityDamage(5.0f, true);
StartPlayerLookAt("cellar_wood01_4", 10.0f, 10.0f, "");
AddTimer("", 5.0f, "Storage_Stoplook");
CreateParticleSystemAtEntity("", "ps_hit_wood.ps", "cellar_wood01_4", true);
}

:Work In Progress:
Insanity
(This post was last modified: 07-22-2011, 09:24 PM by JoeBradleyUK.)
07-22-2011, 04:03 PM
Find


Messages In This Thread
Playing multiple sounds In a function? - by JoeBradleyUK - 07-22-2011, 04:03 PM



Users browsing this thread: 1 Guest(s)