Author Topic: Does playsound work with sound files added by addons and GMAs?  (Read 1922 times)

0 Members and 1 Guest are viewing this topic.

Offline Sgt.Blue

  • Newbie
  • *
  • Posts: 47
  • Karma: 2
Because that would be very helpful.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Does playsound work with sound files added by addons and GMAs?
« Reply #1 on: May 08, 2014, 09:48:11 AM »
It should.
You'd need to know the exact 'virtual' path though.
Example - Your addon/GMA uses its path as sounds/SuperAddon/sound.wav
You'd use "ulx playsound SuperAddon/sound.wav"
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Sgt.Blue

  • Newbie
  • *
  • Posts: 47
  • Karma: 2
Re: Does playsound work with sound files added by addons and GMAs?
« Reply #2 on: May 08, 2014, 11:37:24 AM »
Well I asked because I was planning to add some sounds to my server via the workshop.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Does playsound work with sound files added by addons and GMAs?
« Reply #3 on: May 08, 2014, 10:54:23 PM »
I can confirm that Workshop added resources (sounds included) function just like any other resource. You can use them with ulx playsound or any other play sound function.