Hello everyone,
I'm slowly learning Unity and Playmaker. Having no experience in development I admit to drool a little
I ordered a course on Udemy that allowed me to begin but it is obviously not enough.
So I installed playmaker to help me in programming without having to code.
Currently I test a little the possibilities (well mine instead). So I created a floor and put my FPS CONTROLLER with standard assets. My character can move around the world. I added arms and a weapon. This weapon can shoot and know if it made a hit thanks to Raycast. I can also right click and reach the aimed shouldered (thanks to animations).
Now what I want to do but can not do it is that the Character runs but can not shoot before resuming or being stopped.
I managed to make an FSM on the weapon by saying that if I press the LEFT SHIFT button my animation starts (animation that brings the weapon close to the body) and that the SHOOT and AIM FSM are disabled. Thanks to that, when I press LEFT SHIFT I can not aim and / or shoot anymore.
The big problem with this method is that even if I don't move and press LEFT SHIFT, my weapon goes as if I was going to run and inevitably prevents me from shooting and / or aiming.
What I want to do is make an FSM that makes it happen at a certain speed (according to the script FPS CONTROLLER I think?) My weapon plays the animation that sticks on the body and I can not no longer shoot and / or aim.
I hope I was pretty clear in my explanation, it's not necessarily obvious to make things clear to others when already in his own head it's confused lol
And sorry for my english, I'm French.
In any case, thank you in advance to those who will take the time to help me.