in0finite / SanAndreasUnity

Open source reimplementation of GTA San Andreas game engine in Unity
https://discord.gg/p6jjud5
MIT License
2.13k stars 352 forks source link

Aim Movement State: Switch to Sprint State when the ped is aiming and sprinting #76

Closed TBM13 closed 4 years ago

TBM13 commented 4 years ago

This behavior matches that of the game.

in0finite commented 4 years ago

It shouldn't be done like this. I'll show you how to do it soon.

in0finite commented 4 years ago

This is how it's done: https://github.com/GTA-ASM/SanAndreasUnity/commit/436d3391d7bbca5c1109a39c1e0977c8189c5dc5

It's not so simple as it seems :).

TBM13 commented 4 years ago

Thought it was a single line change haha. Thanks for showing me how it's done!