How do I check for a player touching a wall?

vaporwaveboi

"lua scripter"
I've seen some mods do things like walljumping, and an idea came to me. The only thing is, I have no clue about how to check for a player touching a wall. Is there a variable or a function of some kind I can use for this? if not, then is there any way to manually check for a player touching a wall?
 
Mmm as I knew ! You can create a test map in Zone builder (in a square or bigger) ! Then add a simple wall ! Go open the game and load the level file (you can directly from zone builder) select your mod character that you want to test it and finish !
But you must know how to use zone editor ! If you don't I will try to make one for you ;)
"Sorry if my English is bad or poor"
 
Mmm as I knew ! You can create a test map in Zone builder (in a square or bigger) ! Then add a simple wall ! Go open the game and load the level file (you can directly from zone builder) select your mod character that you want to test it and finish !
But you must know how to use zone editor ! If you don't I will try to make one for you ;)
"Sorry if my English is bad or poor"
He-
He meant using Lua.
Post automatically merged:

anyway there's a hook for that
It's called MobjMoveBlocked
It fires off when you touch a wall
 
He-
He meant using Lua.
Post automatically merged:

anyway there's a hook for that
It's called MobjMoveBlocked
It fires off when you touch a wall
For the record, player.powers[pw_pushing] can be used within the hook PlayerThink, alongside the recently added in 2.2.9 player.lastlinehit to check for hitting a solid wall, and for getting any information tied to the line.
 
For the record, player.powers[pw_pushing] can be used within the hook PlayerThink, alongside the recently added in 2.2.9 player.lastlinehit to check for hitting a solid wall, and for getting any information tied to the line.
S I N C E F R E A K I N ' W H E N
 
But it's just a small hook, definitely not enough for a freakin' GUIDE
True, but in reality there are a lot of areas i dont knoew much about lua so maybe like a hodge pot of sorts,if someone here knows this and like transparent hud, and angles, it would be a good guide i suppose
 
True, but in reality there are a lot of areas i dont knoew much about lua so maybe like a hodge pot of sorts,if someone here knows this and like transparent hud, and angles, it would be a good guide i suppose
Oh, so basic Lua stuff? I'll get to working on that in a few minutes after I try out Metroid Vanguard.
 

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top