Jump to content

getKeyState


Controlled

Recommended Posts

No matter what I do, I can't get getKeyState to work at all.

I've been trying to work with Synced Fires community script and getKeyState makes the script not work. Returns false each time.

if getKeyState("mouse1") == true or getKeyState("mouse2") == true then 

Thats the line. And no matter what it returns false... Theres got to be a reason, right?

Link to comment
No matter what I do, I can't get getKeyState to work at all.

I've been trying to work with Synced Fires community script and getKeyState makes the script not work. Returns false each time.

if getKeyState("mouse1") == true or getKeyState("mouse2") == true then 

Thats the line. And no matter what it returns false... Theres got to be a reason, right?

it's when the player press the button it wont check every time only when he press .

Link to comment
Its checking this onClientRender. It checks the key and if its being pressed it continues.

Is that the right way to use it?

Why don't you test it by yourself? Then you know or it is the right way to do it. (If it works) Put an 'outputChatBox' in to check or it's right.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...