FCBP_ACPRoomRule

Assigns NPCs to a room. Used in the array of FCBP_Room.npcs(...).

Setters

Setter Effect
npcTag(FName) The mainTag of the NPC to place in the room.
count(uint8) How many of this NPC to spawn.
spawnProbabilities(TArray<FCBP_ACPSpawnProbability>) Spawn probability windows → FCBP_ACPSpawnProbability.
biome(FName) Biome filter restricting where this rule applies.

Example

FCBP_ACPRoomRule rule = FCBP_ACPRoomRule()
    .npcTag("SPIDER")
    .count(2)
    .spawnProbabilities({ FCBP_ACPSpawnProbability()
        .probabilityMinWindow(0.0f)
        .probabilityMaxWindow(1.0f) })
    .biome("FOREST");