Posts: 1,599
Threads: 164
Joined: Dec 2010
Reputation:
0
Well, my question is simple. How do i detect when player press Left shift inside a vehicle? detecting KEY_JUMP is not working, also it says it takes no effect inside vehicle on GetPlayerKeys in wiki.
But i've seen many scripts starting car engine at Left Shift.. :/
Thanks
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Keys are different in vehicle. Add a print statement in OnPlayerKeyStateChange to print the values of the keys. Then go in a vehicle and press Left Shift to see what it returns.
Posts: 1,599
Threads: 164
Joined: Dec 2010
Reputation:
0
Any tip on how to get that value? I mean, what should i make it print.
Posts: 1,018
Threads: 129
Joined: Apr 2011
Reputation:
0
Did you see the table with all keys values and THEIR NAME for OnFoot state and OnVehicle STATE?Basically did you scroll down?
Posts: 1,599
Threads: 164
Joined: Dec 2010
Reputation:
0
If i am outside it prints the key, otherway it just don't do anything. ;(