How can i detect 2 keys?
#1

I need to detect 2 keys so if player press only KEY_FIRE it will detect it or if he will press KEY_ACTION it will detect it. So players can use the key that they like.

pawn Код:
if(keys & KEY_FIRE && KEY_ACTION)
Reply
#2

pawn Код:
if(keys & KEY_FIRE || keys & KEY_ACTION)
Reply
#3

Thank you Grim_ it works.
Reply
#4

No problem, glad I could help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)