Total RP 3: Extended

Total RP 3: Extended

903k Downloads

Add StopSound effect

Ellypse opened this issue ยท 1 comments

commented

We would like to add an effect to stop a sound that was sent to be played for other players.

  • We will need to store the handler ID of sounds played by the client in a table allowing us to trace back sounds played by a specific player and the sound ID.
  • When we receive a request to stop a sound, we will look for the sounds played by the sender of the command that corresponds to this ID and we will cancel the sound using the handlerID associated. If more than one handler ID exists for this sound, we will stop them all.
commented

Sending the stop command with no arguments will stop all sounds from the sender.