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
Stopping a playing phonograph mid-piece
triadtimes Offline
Senior Member

Posts: 508
Threads: 16
Joined: Jan 2011
Reputation: 21
#6
RE: Stopping a playing phonograph mid-piece

StopSound works by using the internal name of a sound file. In your example
PlaySoundAtEntity("", "mors_praematura.snt", asEntity, 0, false);
you do not have an internal name set.

In the first pair of quotes you have to give it a name (ex. Rabbit, as Amn said).
PlaySoundAtEntity("Rabbit", "mors_praematura.snt", asEntity, 0, false);

Then, when you call StopSound you use the same internal name (ex. Rabbit again).
StopSound("Rabbit", 1);

I hope this helps.

03-25-2014, 05:16 AM
Find


Messages In This Thread
RE: Stopping a playing phonograph mid-piece - by triadtimes - 03-25-2014, 05:16 AM



Users browsing this thread: 1 Guest(s)