Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Need Help] About "Player.Buttons" #638

Closed
DearCrazyLeaf opened this issue Oct 19, 2024 · 1 comment
Closed

[Need Help] About "Player.Buttons" #638

DearCrazyLeaf opened this issue Oct 19, 2024 · 1 comment
Labels
untriaged New issue has not been triaged

Comments

@DearCrazyLeaf
Copy link

Im working on a plugin using CSSharp, and I want players to toggle it by using their bottons.

So here comes the problem, how can I know the default keys of these flags are? I hope to use "F" to toggle.

Code:
if ((player.Buttons & PlayerButtons.flags here) != 0)
Flags:

1.use
2.left
3.run
4.bullrush
5.walk
6.back
7.alt1
8.alt2
9.attack
10.attack2
11.attack3
12.cancel
13.duck
14.forward
15.grenade1
16.grenade2
17.jump
18.moveleft
19.moveright
20.reload
21.right
22.speed
23.weapon1
24.weapon2
25.zoom

Exmaple:
63a07137d70ab1400574ba4631de6842

@github-actions github-actions bot added the untriaged New issue has not been triaged label Oct 19, 2024
@crashzk
Copy link

crashzk commented Oct 21, 2024

Nothing to do with the subject, but try it on discord: https://discord.gg/eAZU3guKWU

GitHub Issues is focused more on CSSharp bugs etc. Help, questions like this can be addressed on discord, it's even faster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged New issue has not been triaged
Projects
None yet
Development

No branches or pull requests

2 participants