I'm working on a walking simulator story game where I'd like the player view to appear injured with a limp for a chapter/level. I haven't been able to find a thread on this already via the search tool, nor a google search so I apologize if this is something that has already been tackled within the community (if so I'll take this down right away).
The idea is something along the lines of player speed being decreased significantly for a moment in 2-3 second cycles with an increased camera bob and/or player height being reduced. Maybe sudden stops that last a few seconds? Is this even doable?
I'm VERY new to coding and still new to this engine so any help or a nudge in the right direction would be fantastic.
---
Hmmm, I'm starting to wonder if maybe there is a better way than a player script. Maybe just a LOT of zones in a row that slow player speed or set player to crouch? As the player walks through them they'd be slowed down briefly, until they leave that zone (being put back to a regular speed), just to walk right into the next sliver of zone that would slow them again? I only need this for 1 level so I might use this as a work around as the scripting would almost definitely be much more basic. I could almost certainly get by with CharacterControlDucked and SetCharacterToWalk right? Maybe even throw in a couple HurtPlayer pings to make it seem like it is causing the character pain just to simply be moving?
BUT for the sake of edification, would this type of script be possible in this engine? Some sort of loop that changes the player speed and height for some time and then cycles as the player moves ? Or is this just too complex? Maybe I'm just overthinking this XD