Unity devs will LOVE Actor Components in Unreal Engine

  Рет қаралды 890

The Game Dev Cave

The Game Dev Cave

Күн бұрын

Пікірлер: 5
@dylananhorn1
@dylananhorn1 2 күн бұрын
How would you do it if the player and enemies have separate damage calculation? Should I make a separate health component? For example, the player has an armor value that reduces the damage, but the enemies may not have armor, so they would have separate damage. Can I just use different events where the enemies call a different event?
@andaron
@andaron Күн бұрын
You can simply on AnyDamage event -> pass value to "calculateDamage" custom function and it spit out calculated damage. Use event dispatcher, bind that dispatcher inside your component and you have reduced damage
@rshad4ever
@rshad4ever Күн бұрын
I hate actor components, casting is nightmare
@thegamedevcave
@thegamedevcave Күн бұрын
I dont think anything about using actor components really inherently requires casting so something else might be going wrong in your workflow. Matter of fact, the nice thing is that you can set up an interface for getting any kind of actor component and retrieve it from any actor without the need to cast if you're often accessing other actor's components. (like an inventory component for instance)
@Captainpanda2080
@Captainpanda2080 3 сағат бұрын
Like he said, something is off with your workflow. Actor components are incredibly easy to work with. If you want to access the owner of the component you can use get owner, use and interface to retrieve functions. If you want to get the component in another actor, you can use get component by tag, get component by interface. Etc.
PREFABS in Unreal Engine - NOT BLUEPRINTS!!!
8:42
The Game Dev Cave
Рет қаралды 3,1 М.
Setting Up a Quest System in Unreal - Quest Course #1
18:52
The Game Dev Cave
Рет қаралды 376
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 15 МЛН
When Rosé has a fake Fun Bot music box 😁
00:23
BigSchool
Рет қаралды 6 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 22 МЛН
The REAL Reason Unreal Engine VFX Looks FAKE
6:58
Joshua M Kerr
Рет қаралды 537 М.
The 5 Stages of Learning Blender
3:14
Artin Azarnejad
Рет қаралды 275 М.
The Easy Way to Create Hyper-Realistic Lighting in Unreal Engine 5
27:33
Karim abou shousha
Рет қаралды 3,6 М.
How I Learned Procedural Generation
5:36
Lejynn
Рет қаралды 273 М.
NEW PCG Procedural Space Station DEMO | Unreal Engine 5.5
8:34
Unreal Engine Materials in 6 Levels of Complexity
44:12
pwnisher
Рет қаралды 316 М.
Unreal - GAS :  Easy Improved Ability Cost and Cooldown Setup
6:59
The Game Dev Cave
Рет қаралды 507