In this unreal engine 5 tutorial I will walk you through step by step as we create an equipable flashlight with a drainable battery and power level ui. I will also breakdown my process through each step of this tutorial.
UE5 Inventory System:
https://www.unrealengine.com/marketpl...
Setup Guide:
• UE5 Inventory and Item System Setup Guide ...
Download Flashlight Mesh and Icon:
https://cdn.dynomega.com/assets/Dynom...
Discord:
/ discord
00:00 Prerequisites
00:58 Test Item System
01:14 Import Flashlight Mesh and Icon
01:56 Create our Flashlight Item
02:20 Create our Flashlight Equipment
02:58 Debug: Don't see the mesh?
03:24 Flashlight Pivot Point on Equip
03:46 AC_Equipment_Flashlight: Controlling the Flashlight
05:20 Create & Equip our BP_Flashlight
06:42 Remove the BP_Flashlight on Unequip
07:26 Let's Reflect: Equip Blueprint instead of Mesh
08:06 BP_Flashlight: Add the Light to our Flashlight
09:53 AC_Equipment_Flashlight: Turn on and off our BP_Flashlight
10:34 Debug: Flashlight on before button pressed
10:53 BP_Flashlight: Add the Bulb to our Flashlight
11:42 Morse Code: Message received?
11:50 Working flashlight!
12:05 Two flashlights for the price of one
12:28 AC_Equipment_FlashlightBattery: Flashlight with Battery Equipment Handler
13:50 AC_Equipment_Flashlight: onFlashlightEquipped Event
14:27 Battery System: What is a battery?
15:10 Show battery power remaining on Tooltip
17:30 AC_Equipment_FlashlightBattery: Get our Current Battery Life
18:32 AC_Equipment_FlashlightBattery: Prevent flashlight from turning on if the battery is empty
19:07 AC_Equipment_FlashlightBattery: Consume Battery Logic
19:33 AC_Equipment_FlashlightBattery: Save our CurrentBatteryLife after consuming
20:49 Debug: Stop the consuming battery after releasing the button
21:19 AC_Equipment_FlashlightBattery: Consume battery on press to prevent cheating players
21:47 AC_Equipment_FlashlightBattery: Stop the flashlight if its on and battery runs out
22:10 UI_Flashlight: Create the Flashlight’s Battery Power UI HUD
26:07 UI_Flashlight: Let’s make the Power UI HUD look even better
27:59 UI_Flashlight: Dynamic Progress Bar Fill Color based on CurrentPercentage
30:25 Flashlight Sound FX: Turn on and Off Click Sound
31:34 Flashlight Sound FX: Empty Battery Sound
32:25 Where do we go from here?
––––––––––––––––––––––––––––––
Track: The Purge — SilentCrafter [Audio Library Release]
Music provided by Audio Library Plus Watch:
• The Purge — Silen... Free Download / Stream: https://alplus.io/purge ––––––––––––––––––––––––––––––