Posts: 723
Threads: 366
Joined: Jun 2016
Hi,
How to detect all key fire? key_Fire only detect when press key_fire, but i want all keys, when player could shoot
Posts: 944
Threads: 128
Joined: Sep 2014
Reputation:
0
KEY_FIRE is when a player presses a key used to shoot, it doesn't matter what key it is, it's still KEY_FIRE if the key makes you shoot... Eh, you could just test instead of asking every single small thing here...
Posts: 723
Threads: 366
Joined: Jun 2016
So with getplayerkeys, i need just KEY_FIRE? but i test i prints, when i run and shoot, when c and shoot, i always get different keys
Posts: 723
Threads: 366
Joined: Jun 2016
So, getplayerkeys(key,left,right);
if( key & KEY_FIRE )
{
}
?