Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 9 10 11 12 13 … 18 Next »
I've missed some changes
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
I've missed some changes
02-04-2016, 10:23 PM,
#2
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: I've missed some changes
If you want to play sounds on the client, you have to be granted the permission by the user of the chip (or yourself if you're using it). This is because the client has no idea who owns what entity, so can essentially play sounds anywhere.

In order to have your chip eligible for the permission, you also have to register (as early as possible) that you need the functionality, using permissions.register().
-- Register that the chip requires access to playing client sounds (make sure this is on the client side, not server)
permissions.register( permissions.PLAY_CLIENT_SOUNDS )

Now whenever a sound is played, the client running the script checks the permission access, and if they've granted it, the sound plays. Otherwise it (currently) silently fails to play. To grant permission rights, go into the editor, click the shield icon at the top right, and grant either to a specific chip, or all your chips by selecting yourself in the list.
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
I've missed some changes - by Destiny's Player - 02-04-2016, 10:05 PM
RE: I've missed some changes - by Person8880 - 02-04-2016, 10:23 PM
RE: I've missed some changes - by Destiny's Player - 02-04-2016, 10:43 PM
RE: I've missed some changes - by Person8880 - 02-04-2016, 11:10 PM
RE: I've missed some changes - by Destiny's Player - 03-04-2016, 02:30 PM
RE: I've missed some changes - by Person8880 - 03-04-2016, 04:12 PM
RE: I've missed some changes - by Destiny's Player - 23-04-2016, 06:29 PM
RE: I've missed some changes - by Person8880 - 23-04-2016, 06:41 PM
RE: I've missed some changes - by Destiny's Player - 23-04-2016, 06:43 PM

  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.