GamerGTA1 Posted August 9 Share Posted August 9 Hi, I wanted to know how to check if the ped is currently shifting the gear of a vehicle. Thank you! Link to comment Share on other sites More sharing options...
LeeC22 Posted August 9 Share Posted August 9 (edited) 3 minutes ago, GamerGTA1 said: Hi, I wanted to know how to check if the ped is currently shifting the gear of a vehicle. Thank you! Find the name of the shifting gear animation sequence and then check if the ped is playing that animation name. If you don't have an animation list there's a slightly old list here https://alexguirre.github.io/animations-list/ Edited August 9 by LeeC22 Link to comment Share on other sites More sharing options...
GamerGTA1 Posted August 9 Author Share Posted August 9 10 minutes ago, LeeC22 said: Find the name of the shifting gear animation sequence and then check if the ped is playing that animation name. If you don't have an animation list there's a slightly old list here https://alexguirre.github.io/animations-list/ The player doesn't use the shifting animation. Even though there is a shifting anim... Link to comment Share on other sites More sharing options...
LeeC22 Posted August 9 Share Posted August 9 6 minutes ago, GamerGTA1 said: The player doesn't use the shifting animation. Even though there is a shifting anim... In that case then there is nothing to check for. The best you can do is to check the current gear each frame and compare it with the current gear last frame, if the values are different then the gear has been switched. ikt 1 Link to comment Share on other sites More sharing options...
ikt Posted August 9 Share Posted August 9 ScriptHookVDotNet exposes the "NextGear" and "CurrentGear" fields. When the game shifts up, NextGear is changed to the gear it will go to, while CurrentGear stays for a while. Depending on the fClutchChangeRateScaleUpShift/fClutchChangeRateScaleDownShift, some clutch stuff happens, CurrentGear is also updated and finally the clutch is restored to 1.0 (fully engaged). Do note that some mods (specifically Manual Transmission) do not adhere to this. Your best bet is to just monitor CurrentGear like LeeC2202 described. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now