Skip to content

Class "RoomConfigSpawn"⚓︎

Info

You can get this class by using the following function:

Example Code
1
2
3
4
5
local level = Game():GetLevel()
local roomDescriptor = level:GetCurrentRoomDesc()
local roomConfigRoom = roomDescriptor.Data
local spawnList = roomConfigRoom.Spawns
local roomConfigSpawn = spawnList:Get(0)

Functions⚓︎

Pick·Entry ()⚓︎

const RoomConfig Entry PickEntry ( float r )⚓︎

r is a value between 0 and 1


Variables⚓︎

Entries⚓︎

RoomConfigEntries Entries⚓︎


Entry·Count⚓︎

int EntryCount⚓︎


Sum·Weights⚓︎

float SumWeights⚓︎


X⚓︎

int X⚓︎


Y⚓︎

int Y⚓︎



Last update: September 20, 2022