• get distance between player and a wall?
    8 replies, posted
how would i go about getting a distance between a player and a wall and finding that the wall is 180 degreees
Is it the same wall every time? What wall? 180 degrees to what? What are you trying to do?
[QUOTE=Coffeee;49146908]Is it the same wall every time? What wall? 180 degrees to what? What are you trying to do?[/QUOTE] im trying to get it so when ever a player touches a wall that is vertical they will die :P
Do you mean a brush or an entity (called wall?)? Take some screenshots of what you mean
[QUOTE=Coffeee;49146942]Do you mean a brush or an entity (called wall?)? Take some screenshots of what you mean[/QUOTE] i mean like a wall on the map [IMG]https://i.ytimg.com/vi/2qYB_5hvtoY/hqdefault.jpg[/IMG]
Please stop making a new thread for every question. You've been making a new one every day for the last three days. Use [URL="https://facepunch.com/showthread.php?t=1458227"]this thread[/URL] for simple questions like this.
You can do a TraceLine and check the distance apart you are from the object.
[QUOTE=code_gs;49147647]You can do a TraceLine and check the distance apart you are from the object.[/QUOTE] Using HitNormal will also help you figure out if the wall is perpendicular to the ground, or any other angles for that matter...
[QUOTE=DeathWard;49147496]Please stop making a new thread for every question. You've been making a new one every day for the last three days. Use [URL="https://facepunch.com/showthread.php?t=1458227"]this thread[/URL] for simple questions like this.[/QUOTE] I would never help this guy anyway, he is a known script leaker. [url]https://scriptfodder.com/users/view/76561198079348078[/url] Don't help him.
Sorry, you need to Log In to post a reply to this thread.