• Right Click function in gamemode?
    3 replies, posted
Just started in LUA, making a gamemode, trying to figure out how to add an action to the right click. Anyone have any ideas?
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/KeyPress]GM:KeyPress[/url] Also, right click is by default IN_ATTACK2 (2048)
[url]http://wiki.garrysmod.com/page/GM/PlayerButtonDown[/url] Check if the key is MOUSE_RIGHT.
[QUOTE=txike;52149177][url]http://wiki.garrysmod.com/page/GM/PlayerButtonDown[/url] Check if the key is MOUSE_RIGHT.[/QUOTE] If he's creating a gamemode, shouldn't he use KeyPress as PlayerButtonDown won't work in singleplayer?...
Sorry, you need to Log In to post a reply to this thread.