UCR Docs
Discord
  • Welcome
  • Getting Started
    • What's UCR
    • Installation
  • Custom Roles
    • First steps
    • Configuration
      • Configuration elements
      • Health and AHP
      • Hume Shield
      • Effects
      • Stamina
      • Escape Logic
      • Spawn Behavior
      • Custom Flags
        • Vanilla Flags
    • Troubleshooting
    • Compatibility
  • Commands
    • List
    • Overview
    • Info
    • Role
    • Spawn
    • Reload
    • SpawnPoint
      • List
      • Create
      • Delete
      • Goto
      • Sync
      • Migrate
      • Download
    • Percentages
    • Errors
    • Generate
    • Update
    • Owner
    • Version
  • Syntax Notions
    • Enums
    • Arrays
    • Null
Powered by GitBook

© 2025 UncomplicatedCustomServer Collective & FoxWorn

On this page
  • Can Replace Roles
  • Max Players
  • Min Players
  • Spawn Chance
  • Spawn
  • Spawn Zones
  • Spawn Rooms
  • Spawn Roles
  • Spawn Points
  • Required Permission
Export as PDF
  1. Custom Roles
  2. Configuration

Spawn Behavior

PreviousEscape LogicNextCustom Flags

Last updated 1 month ago

Spawning is definitely the most important mechanics for a Custom Role. With UCR you can decide almost everything, from the location, to the conditions: almost everything!

The object should look like this:

spawn_settings:
  can_replace_roles:
  - ClassD
  max_players: 10
  min_players: 1
  spawn_chance: 60
  spawn: RoomsSpawn
  spawn_zones: []
  spawn_rooms:
  - LczClassDSpawn
  spawn_roles:
  - ClassD
  spawn_points: []
  required_permission: ''

Can Replace Roles

Configuration element name: can_replace_roles Type:

This configuration value contains Enum values: please visit the page in order to learn more about them!

A list of vanilla roles that can be replaced by this Custom Role. For example, if you put only ClassD then the role will be able to spawn only at the beginning of the round and it would be given only to a Class-D!

This is the easiest way to control which vanilla-roles can become Custom Roles and it's also a powerful tool to choose when a Custom Role can spawn.

Max Players

Configuration element name: max_players Type: int32

The maximum number of players that can have this Custom Role simultaneously.

Min Players

Configuration element name: min_players Type: int32

The minimum number of players that must be online in the server in order to allow the spawn of this Custom Role.

Spawn Chance

Configuration element name: spawn_chance Type: int32

The chance of spawning as this Custom Role (if your vanilla role was in the can_replace_roles list) in percentage (%). spawn_chance: 60 is a 60% chance of spawning.

Spawn

Spawn Zones

A list of Zones where the Custom Role will be able to spawn. The spawn room will be chosen randomly.

Spawn Rooms

A list of Rooms where the Custom Role will be able to spawn. The spawn room will be chosen randomly between the given values.

Spawn Roles

The Custom Role will spawn in one of this Role list random spawn point.

Spawn Points

Configuration element name: spawn_points Type: []string

Required Permission

Configuration element name: spawn_points Type: string

A "custom" EXILED permission that the role must have in order to natually spawn as this Custom Role. For example if you put ucr.vip.role1 then the people with these perms will be able to spawn as this Custom Role: - * - *.* - ucr.* - ucr.vip.* - ucr.vip.role1

Configuration element name: spawn Type:

This configuration value contains an Enum: please visit the page in order to learn more about them!

The spawn mechanism that UCR will use in order to decide where to spawn your Custom Role. Available values: - CompleteRandomSpawn: a random room inside the whole facility will be chosen. - ZoneSpawn: the role will spawn in a room in one of the given Zones - RoomsSpawn: the role will spawn in one of the given Rooms. - SpawnPointSpawn: the role will spawn in one of the given Spawn Points. - KeepRoleSpawn: the role will keep the default position, chosen by the game. - KeepCurrentPositionSpawn: the role won't modify the player position (where they spawned as the ) - ClassDCell: the role will spawn in one of the Class-D's cells. - RoleSpawn: the role will be spawned in a random spawn position of one of the given Spawn Roles.

Configuration element name: spawn_zones Type:

This configuration value contains Enum values: please visit the page in order to learn more about them!

Configuration element name: spawn_rooms Type:

This configuration value contains Enum values: please visit the page in order to learn more about them!

Configuration element name: spawn_roles Type:

This configuration value contains Enum values: please visit the page in order to learn more about them!

A list of Spawn Points where the role will be able to spawn. In order to read more about Spawn Points please visit .

Enums
Enums
Enums
Enums
this page
Enums
[]RoleTypeId
SpawnType
[]ZoneType
[]RoomType
[]RoleTypeId
vanilla Role
vanilla Role