9.99 Reduce AI Resources [UE4 - RTS Tutorial]

Опубликовано: 06 Октябрь 2024
на канале: TwoNeurons
1,433
27

Welcome to the 99th video of this #UE4 RTS #tutorial series. In this video, we will create a system for checking the Enemy AI resources and reducing those resources when the Enemy AI construct a building.


In the next video, we will make it so the enemy AI trains engineer units.

Intro - 0:00
Fixing Fear Timer error - 1:00
Step 1. Check Resource Cost - 2:55
Step 2. Reduces Resources (Building) - 5:00
Step 3. Setting Check Task in Behavior Tree (BTT_CheckAndReduce Enemy Resources) - 6:30
Step 3a. Calling new task - 7:07
Step 3b. Smart Cast - 7:35
Step 3c. Set Building Type - 8:30
Step 3d. Call Set Building Type - 11:13
Step 3e. Spawn in Empty Building - 11:50
Step 3f. Check Resource Cost (call) - 13:45
Step 3g. Reduce Resources (call) - 14:55
Step 3h. Exposing blackboard key- 16:01
Step 4a. Fixing Service (EnemyStateCheck) - 16:38
Step 4b. Fixing Task (Spawn Building) - 17:36
Step 4c. Adding the resources in (Enemy Pawn) - 20:15
Step 5. Fixing the empty building spawn - 20:30
Step 6. Updating Building Master - 21:25
Step 7: Updating enemy UI issue (BuildingMaster functions: GetUnit, ReleaseSingleOccuptant, ClearOccupantList) - 29:11

Meshes for section 7: New resource icon: http://bit.ly/RTSResourceIcon2
Irons for section 7: http://bit.ly/RTSUnitAssets (copyright notices located with the individual files)
Animation pack for section 7: https://www.unrealengine.com/marketpl...
Meshes for section 5: http://bit.ly/BuildingMeshes
Unit Portraits for section 4 here: http://bit.ly/UnitPortraits
Meshes (tree and rock) and icons for section 3 here: http://bit.ly/RTSREsources

If you have any suggestions for content or topics you want to see covered, please let me know below, on twitter @TwoNeuronstream, or on Reddit.

---------
Section 9: Enemy AI
Video 95: Enemy AI prep
Video 96: Enemy Pawn
Video 97: Spawn Enemy Training Post
Video 98: Enemy Engineer Construction and Repair
Video 99: Reduce Enemy Resources For Construction
Video 100: Train Engineer

---------
The plan for this series is roughly:
1. Movement
2. Time and HUD
3. Resources (basic)
4. Units/NPCs (basic)
5. Construction (basic)
6. Combining Units and Construction (basic)
7. Resources, Units, and buildings
8. AI (Unit/NPC behaviour)
9. Enemy/Enemy AI

There will be more topics that will be covered, than what is listed above.

The order of presentation may change based on your feedback. Additionally, I may drop the intros if you guys do not find them useful.

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

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