12 Inventory Functionality (Add Stackable Items; Part 2) [UE4 - Survival Game]

Опубликовано: 15 Октябрь 2024
на канале: TwoNeurons
1,789
61

Welcome to video 12 in this #UE4 #SurvivalGameTutorial for developing a survival game. In this video, create our inventory and add in the functions required to add stackable items.

In the next video, we will create the functions for using our inventory (use item, split stack, discard, etc.).

00:00 - Intro and Warning
01:37 - Refresher
Step 1: Set up for adding to stack
02:41 - Step 1a: Get Max Stack Size
04:43 - Step 1b: Find Available Stack
13:09 - Step 1c: Changing object to specific classs reference
14:02 - Step 1d: Get current stack amount
Step 2: Add to stack (function)
16:27 - Step 2a: Create add to stack and lcoals
19:41 - Step 2b: Options (new stack vs stack exists)
21:23 - Step 2c: Existing Stack (start)
23:54 - Step 2d: Existing Stack (less than Max; true branch)
26:03 - Step 2e: New Stack (Start)
28:54 - Step 2f: New Stack (less than Max stack; false branch)
29:25 - Step 2g: New and Existing Stack (at or above max)
33:09 - Step 2g: Edit
35:06 - Step 2g: end of edit
Step 3
25:22 - Step 3: Get Amount
Step 4: Finishing the add to stack branch
36:47 - Step 4a: Calling Add to Stack Function
37:40 - Step 4b: Has more branch
38:54 - Step 4b: Edit 2
Preview of system: 39:07
40:37 - Step 4b: end of edit
41:04 - Outro

Assets used in this project: http://bit.ly/SurivalGame

---------
Support this channel:   / twoneurons  

---------
Follow me at:
Twitter:   / twoneuronstream  
Twitch:   / twoneurons  
Discord:   / discord  

#UnrealEngine5 #UnrealEngine4 #UE4Tutorial