Talk:surface/PlaySound

From Garry's Mod
Jump to: navigation, search

Idk why you are so against using root folders when a large number of servers use them over addons, but you should at least list it as a search path. What if the sound exists in sound/? Do addons or the gamemode have priority? Define this behaviour instead of leaving it in the air. - Code gs 11:01, 4 April 2019 (UTC)

I am not against using root folders, it's that you shouldn't really use them especially as a beginner, who would then go to upload/release their addon and find the sounds not working because they forgot to put them into their addon/gamemode folder. It doesn't matter what server owners do in this context, the wiki and that example is aimed at beginners. Addons do in fact have priority (override) any files in the root folders, you can see this yourself using the "path" concommand, paths higher take priority over files on the bottom. --Robotboy655 13:48, 4 April 2019 (UTC)
👍 Code gs 14:46, 4 April 2019 (UTC)
Personal tools
Navigation