Creating My Blueprint Actor and Working Flashlight In Unreal Engine 4 (Horror Game Part 2)

Battery Actor and Blueprint –

This is my Battery actor and blueprint, every time the character collects the battery it will disappear and add 0.4% battery life to the torch to a maximum of 1.0.

I added a box collision the the static mesh which then triggers the set of blueprints when the first person character enters it.

Working Flashlight Blueprint –

I added a spotlight component to my first person player to give my flashlight the actual light. It works on the basis of battery life, if it reaches 0.0 the torch will not function. The blueprints will check over the amount of life left to determine if the torch will turn on or not.

I set it to use the F key to toggle on or off.

Leave a comment