Bosses
Last updated
Last updated
boolean
[] GetBosses(
? entityType = -1 , integer? variant = -1 , integer? subType = -1 , boolean? ignoreFriendly = false)
Helper function to get all of the bosses in the room.
boolean IsSin(
npc)
Helper function to check if the provided NPC is a Sin miniboss, such as Sloth or Lust.
SpawnBoss(
entityType, integer variant, integer subType,
position,
? velocity,
? spawner, integer |
? seedOrRNG?, integer? numSegments)
Helper function to spawn a boss. Use this function instead of TSIL.Entities.SpawnNPC
since it handles automatically spawning multiple segments for multi-segment bosses. By default, this will spawn Chub (and his variants) with 3 segments, Lokii with 2 copies, Gurglings/Turdlings with 2 copies, and other multi-segment bosses with 4 segments. You can customize this via the "numSegments" argument.
[]
(?
entityType = -1 , integer?
variant = -1 , integer?
subType = -1 , boolean?
ignoreFriendly = false)
( npc)
( entityType, integer
variant, integer
subType, position, ?
velocity, ?
spawner, `integer