OnPlayerKeyStateChange ?
#2

Quote:

if(newkeys & KEY_FIRE)

You should take a look at OnPlayerKeyStateChange under the section How to check for a key that has been pressed.

Quote:

Hello, I shoot, but a value of 1. Again, when I shoot 2's. I want to constantly increase in value. How Can I do that. I'm sorry for my bad English.

Do you mean if the player presses the fire button that the value should increase, or that if the gun fires that the value should increase (a gun can fire multiple times by hodling the fire key).
Reply


Messages In This Thread
OnPlayerKeyStateChange ? - by sampkinq - 19.07.2016, 20:27
Re: OnPlayerKeyStateChange ? - by Freaksken - 19.07.2016, 20:37
Re: OnPlayerKeyStateChange ? - by sampkinq - 19.07.2016, 20:46
Re: OnPlayerKeyStateChange ? - by Freaksken - 19.07.2016, 20:57
Re: OnPlayerKeyStateChange ? - by sampkinq - 19.07.2016, 21:14

Forum Jump:


Users browsing this thread: 2 Guest(s)