IsKeyNotDown?

Topics regarding Scripting with Reality Factory
Post Reply
wabogenadod
Posts: 18
Joined: Mon Dec 17, 2012 9:59 pm

IsKeyNotDown?

Post by wabogenadod » Mon Dec 24, 2012 12:52 am

Is there a way to check if a key is not down?
For instance:
if (IsKeyNotDown(What ever key)).

Just so that I'm able to select weapons without jumping to the next one every frame but instead every time i press the button. Theres probably something in the manual but i can't find it so is there anyone that could help?

Thanks

User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Re: IsKeyNotDown?

Post by Juutis » Mon Dec 24, 2012 12:16 pm

Negation should do the trick. In Simkin it's as follows, if I remember correctly:

Code: Select all

if(not IsKeyDown(What ever key))
or

Code: Select all

if(IsKeyDown(What ever key) = false)
Pain is only psychological.

Post Reply