Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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

Product Version: UE 4.20
more ▼

asked Aug 08 '18 at 11:35 PM in Blueprint Scripting

avatar image

Original LMoney
6 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

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.

more ▼

answered Aug 11 '18 at 10:02 PM

avatar image

Original LMoney
6 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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?

more ▼

answered Aug 09 '18 at 01:33 AM

avatar image

166 13 19 32

avatar image Original LMoney Aug 09 '18 at 01:52 AM

1) Am I using a character or pawn for what, specifically? If you mean my character, I'm using my First Person Character blueprint.

2) You're right, I do have some errors. While it certainly won't hurt to look again, I'm pretty sure those errors pre-date my current problem. That said, I will double-check them.

3) I haven't altered my game mode since I began trying to make my level. Is there some sort of error that would cause it to change? Honestly, if there's some alteration I can make or specific game mode I can switch to that will fix this, please tell me, I'm all ears.

avatar image Althaen Aug 09 '18 at 02:19 AM

Sometimes I find that the game mode resets itself. The only other thing I think of is that you're using a spectator for some reason. Try to run the game and then check the editor outliner to see if the FPS character exists. It would also helpful to see your output log after you run the game.

avatar image Original LMoney Aug 09 '18 at 02:50 AM

Okay. I will do that tomorrow, as I've got to get something else out of the way tonight, but, I will report back with any updates I might have. Thank you.

avatar image Original LMoney Aug 10 '18 at 03:38 AM

Okay, update: Checked the game mode. I do not appear to be in spectator mode (Should my "Tick Group" be set to Pre Physics?). Checked the outliner (I'm assuming you mean the "World Outliner" in the upper right corner of the editor). I couldn't find my character there. That said, I don't know if that's a new thing or not; Honestly, I don't remember checking (Or needing to) before. Lastly, my compiler error message was vague. It said "Blueprint: (The name of my map) failed to compile" and nothing else. I feel like I used to get more detailed error messages...is there a way to toggle whether or not you see them that I might have accidentally activated? alt text

error-message.jpg (58.7 kB)
avatar image Althaen Aug 11 '18 at 10:00 AM

Go to Window>Developer Tools>Output Log, run the game, move around for a bit, exit. Now copy your output log and pastebin it for us. The output log will give you more detailed information.

If your character is not in the outliner during play then it's not being spawned. What can you see in Edit>Project Settings>Maps & Modes?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question