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
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#3
RE: Stopping a playing phonograph mid-piece

(03-25-2014, 05:16 AM)triadtimes Wrote: 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.

This came from the identical thread, created by the same user.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 03-25-2014, 07:05 AM by Romulator.)
03-25-2014, 07:05 AM
Find


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



Users browsing this thread: 1 Guest(s)