KEY_JUMP
#1

So well i'm using KEY_JUMP so that when player presses the key the vehicle engine starts, But when i press Shift key it doesn't perform any action, but when i press ARROW KEY DOWN it starts the engine, can you help?
pawn Код:
else if(newkeys == KEY_JUMP)
Reply
#2

The players keys are the keys setuped in the options,if you use the arrow key down to jump,another player uses SHIFT,the keys work as like the control settings,anyone has different controls.The default of key_jump is SHIFT,but i assume you have edited the control with ArrowKeyDown.
Reply
#3

Are you sure you are pressing the correct key?

DEBUG: Put
pawn Код:
print("Key jumped has been pressed");
inside the KEY_JUMP condition block.
Reply
#4

Quote:
Originally Posted by T0pAz
Посмотреть сообщение
Are you sure you are pressing the correct key?

DEBUG: Put
pawn Код:
print("Key jumped has been pressed");
inside the KEY_JUMP condition block.
Using it and when i press Shift key it doesn't print it but does when i press Arrow key down.

And i have default San andreas controls.
Reply
#5

Maybe KEY_JUMP is different for vehicles? If it's arrow down, maybe it's the wheelie button? Try making something with KEY_JUMP on foot.
Reply
#6

I removed the code that checks if the player is in vehicle and checked by pressing Shift key, It actually works on foot but in vehicle it doesn't, still Key arrown down, Any help?
Reply
#7

Click me.
Check the keys' "Gametext-Key in Vehicle," that's what the key will give in vehicles. In vehicles KEY_JUMP should be vehicle brake key.
Reply
#8

Using This Key now but it still doesn't perform any action while player's in vehicle.
pawn Код:
if(newkeys == KEY_WALK)
Reply
#9

KEY_WALK is nothing when in a vehicle.

For example:
Код:
KEY_ANALOG_UP2048-~k~~VEHICLE_TURRETUP~
that means if you put "KEY_ANALOG_UP," in a vehicle, it will be "VEHICLE_TURRETUP," so if you press the turret up, it will call the function in where you used "KEY_ANALOG_UP." Get it?
Reply
#10

Yes, Thank you.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)