Making Items Interactable

At first I wanted to make the items picks up items however I believe this wouldn’t refer back to my main idea so instead I decided to have the items already in the players hand when the game begins.

I went to the gun’s settings and set it so the gun is hidden in game. I then created “Static Mesh’s” for the knife and torch and placed them where it looked realistic. Instead of creating another static mesh for the key I decided to combine it with the knife and make the key a “child” of the knife so when the player switches through the knife and torch they will be in the same position.

I also added a “Spotlight” in front of the torch in order to add realism to the project.

I then went into the “Firstperson Blueprint” and created these components:

Component 1: When the player presses “Key 2” the player is able to switch from knife to key

Component 2: When the player presses “Key 1” the player puts the knife/key away

Component 3: When the player spawns in the game level, the player doesn’t have the knife equipped.

Component 4: When the player spawns in the torch is off.

Finally, this component makes the player be able to turn the light of the torch on and off by pressing “Key 2”.

This is the final image of all the items in game switching from knife to key and just the torch.

Published by raekwonplaysgames

This will be my blog of me developing, accepting and rejecting ideas to make my perfect game!

Leave a comment

Design a site like this with WordPress.com
Get started