Prevent input
is it possible to prevent the player from moving at all (prevent input) in defined sections?
I build mumerous sections in my project where move input from the player could cause him to get lost.
As far as I know it's possible to prevent input from an XBOX 360 controller.
I'm looking forward to hear from you.
iSpectra
- Enabling a game_ui
- Enabling a camera which 'freezes' the player
- Setting cl_fowardspeed / backspeed etc to 0
If you just want to prevent the player to walk in certain spots, put an obstacle and/or playerclip. Having the player freeze for no reason is a bit odd to be honest.
iSpectra wrote:
How/where can I set cl_fowardspeed / backspeed to 0?
Maybe you could explain a bit more about the situation? I assume it's something like a moving platform the player stands on and shouldn't leave? Maybe a camera (point_viewcontrol) that moves around the player meanwhile could be nice then?