Hello everyone! So I've been looking for a way to check when the player is crouching, I'm using the first person controller that its available at the AC website and has the FPcrouch script.
I've been looking in the documentation, the manual and this forum but I can't seem to find an answer. I tried putting a Global variable inside the FPcrouch script, and while it compiled find, it didn't worked. Maybe there's an easy way to check but I haven't been able to find it. Thanks in advance.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Welcome to the community, @LegForDays.
Through script, you can determine this by reading the FPCrouch script's IsCrouching property, i.e.:
You can use this in a custom script (SetCrouchVariable) attached to the same object to sync it with a Global Boolean Variable that you can then read within ActionLists:
Thanks a lot! It worked with no issues.