I’m making a horror level, and I didn’t want the character to be able to move sideways or backwards, I’m using the FPS script given by unity, but I can’t seem to find the part that makes the hotkeys allow the character to move so I can remove the strafing bit. Anyone know what I should be looking for? Thanks.
1 Answer
1In an attempt to actually answer this question:
You may want to just remove the A and D keys from the Input Manager. Menu Edit/Project Settings/Input. Expand Axes and Horizontal and see ‘a’ and ‘d’ there. Just remove those.
Wouldn't that cause lots and lots of errors? And in return cause no movement at all?
– Benproductions1I did suggest that in my closing comment. Of course it is totally possible but really is a 'hack'. This is just going to lead to headaches until the OP realizes that to work in Unity they need to learn how to read and write code.
– AlucardJay
What you should do: Learn to code What you should have done: googled how to code What will never happen: This question getting answered Why: Because you have shown no effort towards your cause what so ever
– Benproductions1I can't seem to find the part that makes the hotkeys Find the word
– Chronos-LInputand inspect each related code piece. To better yourself as programmer, you will need to try to figure out how to remove thestrafingcode without breaking the script yourself.Thanks Chronos-L as to Benprodoctions this is a Q&A site, where newbies ask for help, your comment was unnecessarily insulting and I did not appreciate it. If you have nothing good to say then please do not share it. Thank you.
– Ibnakhal_1I'm sorry but @Chronos-L is correct. What you said about this being a Q&A site is correct. However, you are not asking a question here, you are requesting someone to give you modified script. To better get an answer, please edit your question so that we can know what you have already done, what you feel is not working as intended.
– VivekDgood heavens this got out of hand. No Chronos-L I was thanking you, nothing you said was insulting, the latter was a referral to Benproductions which we have already settled
– Ibnakhal_1