Force Player into Gun "too close to wall" Animation?

I’m trying to determine how I could force a player’s gun to be lowered. If you are in-game, and you get too close to a wall, or a door, your gun will automatically lower, and you won’t be able to fire.

How would I be able to force this animation?

OOH! I got it! How about Creating 3 points on the player that point in front of the player around 5 / 10 feet. If that point (the end of the ‘stick’) pointing outwards is closer to the player than ‘X’ then player must be in front of a wall…

OOHH! AND YOU can use the SHAPE-LOS Test (los stands for line of sight by the way), so this way, you can set it so that vehicles are or are NOT taken into consideration.

The only thing I’m not sure about would be how to get the distance from player to that point in front of you…the idea is that when you’re in front of a wall, that distance would be shorter…but Idk how that’d work…

Here’s some natives that’ll help ya tho: