Hello, I have a few questions concerning LUA scripting.
1. Is there a LUA code or some way to get rid of the death sound or change it. ( The suit beeping)
2. How would you do any post processing like bloom and things form LUA.
3. Im still very new to LUA and am not sure how to make something select something at random, for example in my DM game mode i want a code to randomly choose from a set of models I have selected to apply to the player.
Thankl you!
1. [url=http://wiki.garrysmod.com/?search=Gamemode.PlayerDeathSound][B]GM:PlayerDeathSound[/B] [img]http://wiki.garrysmod.com/favicon.ico[/img][/url]
[lua]function GM:PlayerDeathSound()
return true
end[/lua]
2. [url=http://wiki.garrysmod.com/?search=Gamemode.RenderScreenspaceEffects][B]GM:RenderScreenspaceEffects[/B] [img]http://wiki.garrysmod.com/favicon.ico[/img][/url]
This page also has links to all of the post processing functions.
3. Create a table of all of the models you want, then use [url=http://wiki.garrysmod.com/?search=table.Random][B]table.Random[/B] [img]http://wiki.garrysmod.com/favicon.ico[/img][/url] to select a single random one.
Sorry, you need to Log In to post a reply to this thread.