Thursday, 13 December 2018

Unreal: Key Pickup not working correctly

After recreating the NavMesh in an attempt to fix the problem that has reappeared with walking up the stairs and becoming stuck, it appears to have affected the key pick up. This did not solve the stairs issue, but it did unexpectedly help with the movement of the AI hugely.

The collider appears to be solid, and not a trigger, meaning I cannot walk over the item and pick it up. It seems to pick up sometimes, after standing by it for several seconds or if I sprinted at it. But whilst walking up to it, it did not allow me to pick it up.

I spent a long time testing it and trying to figure out what was happening. Eventually, I realised that the zombies were picking the key up, and not me. However, if I sprinted at it at the beginning of the level, it allowed me to pick it up sometimes. Whilst playing around with settings, either I could not pick the key up, or the zombies could...





After a lot of trial and error, attempting to achieve the correct results, I managed to find the solution.

I knew what I was trying to achieve, but I was confused about the settings and looking online did not particularly help me to get the results I wanted.

After getting to the point of almost guessing, I decided to look at other actors and try to achieve the original settings I had to begin with in an attempt to retrace where I went wrong, as it was originally working with those settings. I decided to add a node Cast To FirstPersonCharacter to ensure it was the player colliding, and not the zombie.

Finally, I was able to find the results that allowed me to pick the key up as I once did, and the zombies are ignored by the collision.









No comments:

Post a Comment

Unreal: Project Evaluation

Unreal is visually enticing and appears to be extremely user-friendly. In the beginning stages, I found it really nice to use and I was exc...