Hello! How would I make a sort of detecting system that would detect how tall or how low my cover is so it can play the correct animation? I don’t want a standing cover animation for a low cover XD
This may not be the most ideal or performance efficient solution, but it worked for me:
Create two sockets in your skeletal mesh. One at chest level named ‘sock_chest’ and another right below the hip ‘sock_hip’. You can then do line (or box) traces toward the charcter’s facing direction from these two sockets (first from chest and if it does not hit, then from hip) to a distance of say ‘1 meter’. This way you could detect if you have enough surface to cover against.
IF the trace from chest hit something , it means you can stand against the cover. And if it does not hit, you can do another trace from hip. If that hit, you should crouch against the cover. If both are missed, then you dont have any cover objects near by that are tall enough.
Thanks man!
See if it works out and let me know how it went. I hope to hear back from you
Oh and don’t forget to mark this thread as solved, when you’ve got it right
Hi, can you make a blueprint example here and please if image make sure is readable…Thanks Happy new year