USK - Documentaion
Asset Store
Discord
Forum
Searchβ¦
USK - Documentaion
π
Welcome
π₯
Installation
π
Project Overview
π
Get Started
β
Migration Guide
β
Project Settings
Input System
UI Manager
π€
Characters
Overview
Creation
Adjustment
Controller
Camera
Inventory Manager
Multiplayer
π«
Weapons
Overview
Creation
Adjustment
Weapon Controller
Usage
π€
AI Opponents
Overview
Creation
AI Controller
Multiplayer
Adding to the Game
Waypoints
Covers
Stealth Zone (Grass)
π¦
Integrations Manager
Overview
Emerald AI
Realistic Car Controller
Edy's Vehicle Physics
NWH Vehicle Physics 2
Destroy It
πΉ
Single-player Game Creation
Creation
π₯
Multiplayer Game Creation
Overview
Activation
Lobby
Rooms
π±
Mobile Control
Activation and Usage
Mobile Debug
Other Components
π―
Spawn Zones
πΊ
Minimaps
π©Έ
Blood Splatter
π€
Pickup Items
πͺ΅
Surfaces
β‘
Animation Events
β¨
Render Pipelines
Project Update
Post-processing Effects
Additional Info
βΆ
Video Guides
β
FAQ
Powered By
GitBook
Adding to the Game
Adding opponents to multiplayer and single-player games is the same.
To add opponents to your game, you first need to create an
AI zone
:
1.
Put all environment objects in your scene into
one parent object
.
2.
Mark walls, floor, and other necessary objects as
static objects
.
3.
Add the
AI Area
component to the parent object
4.
Set the baking parameters you need and
bake the area
.
The
Baked Agent Type
indicates which AI types will be able to move around this arena.
If you are using more than one area in your scene, set different
Area Types
for them. This will limit opponents within one zone.
You can create more areas and agent types in the Navigation tab
(Window -> AI -> Navigation)
.
β
After the area is ready you can add enemies to the scene. This can be done in 2 ways:
If you need to spawn enemies on specific points, add them to the
AI Area
script.
Behavior
Enemies' movement behavior in the scene
Spawn method
Random:
one random point from the
Spawn Zones
will be chosen.
β
β
β
Specific point:
set a spawn zone for an enemy as you need.
β
Spawn enemies constantly.
Count
If β is not active
, this number means how many enemies will be spawned during the game.
β
If β is active
, this number means a limit of enemies in a scene. (if a player kill 3 zombies, 3 more will appear in the game)
Time
A break between the appearance of enemies (in seconds).
β
The second way is to place enemies on the scene in the places you need.
β
See the sections below to learn how to add
waypoints
,
covers
, and
grass
.
Waypoints
Covers
Stealth Zone (Grass)
AI Opponents - Previous
Multiplayer
Next
Waypoints
Last modified
4mo ago
Copy link