How to detect if a player is touching a wall
Title says all.
|
Re: How to detect if a player is touching a wall
touching with knife ? or shot ? or just the use key ? :oops:
|
Re: How to detect if a player is touching a wall
If the player entity (the body) is colliding with the wall.
|
Re: How to detect if a player is touching a wall
For wall touch when you're not on ground, you can use register_touch and check for FL_ONGROUND on player.
If it's on ground, you can even make some tracelines all along the vertical of bound box... Afaik you can't check if it's touching a real wall or any object in worldspawn because you can't differentiate it. |
Re: How to detect if a player is touching a wall
Quote:
|
Re: How to detect if a player is touching a wall
bump
|
Re: How to detect if a player is touching a wall
Code:
|
Re: How to detect if a player is touching a wall
I've been trying to detect if a player is touching a wall, time ago, and I didn't found nothing :/ this is helpful, totally.
|
Re: How to detect if a player is touching a wall
On the ground touching occasion I do not know better way than joropito's suggestion of tracing all the sides, which I do not have time to write either.
|
Re: How to detect if a player is touching a wall
Here is for the tracing around bounds check:
Code:
|
All times are GMT -4. The time now is 16:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.