First-person game collision/movement/shooting problems
A little background: I was attempting to follow the official Unreal tutorial videos to add swapping to my UMG inventory. I had already followed one of the earlier tutorials to create my inventory, however, after adding a new feature to my level, I determined I needed to including the ability to swap items into my inventory.
Everything had been working fine, however, as I followed the tutorial and added functions to move my items (And their corresponding images in the inventory) to my PlayerController blueprint as well as overriding the "On Drop" and "On Drag Detected" functions, something, apparently, went wrong: Despite not doing anything like this prior to adding/overriding these function, my character can no longer shoot his gun, instead of jumping, he simply goes up into the air as if his movement mode were set to "flying" (Even though I have no such command anywhere in my PlayerContoller blueprint), if started on an area where there is no floor, he does not fall, and, if he is on the floor, and facing downward, he walks through the floor.
It was suggested to me to change to a more recent version of the engine (I was originally trying this on 4.11), but, that didn't help. Note: One thing I have noticed is that the bullets (The preset projectiles a first person project starts with) collision setting sounds like it's saying they won't fire if my character or my gun are colliding with something (I'm assuming). What this means, I'm not sure, but, I think it might be a clue about my problem.
Can anyone help me? Enclosed is a link to a video I made showing my problem in action. link text
asked Aug 08 '18 at 11:35 PM in Blueprint Scripting
After looking through my project settings, I noticed that my default game mode was set to "Game Mode". I changed it to "First Person Game Mode" and, suddenly, my gun works again, my character jumps (Not flies), and I no longer walk through the floor! :D
Had you not brought that to my attention, God only knows how long it would've taken me to figure out what was wrong. So, thank you very much.
Are you using a character or a pawn?
You also have BP errors, what are they? Open the message log to see.
Is your game mode set correctly?
answered Aug 09 '18 at 01:33 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here