So I’m trying to create a teleportation gun for ttt - You look at an entity, shoot at it, and you teleport to that entity.
The main issue I came across is players teleporting to outside the map - when an entity is out of bounds (Like a clear view to a prop/the floor outside the map).
Luckily, all of our maps don’t have any out-of-bounds areas that allow you to move freely, if you get outside of the map you’re just stuck. So I’m wondering - How can I check if a player is “stuck”, even though there is supposedly nothing around him? (I think it’s with player clips, I’m not sure, I’m clueless at this area :saddowns:)
Even better (if possible) - How would I prevent a player from teleporting to such a place to start with?