Entities Specific
Functions
Section titled “Functions”getBombs()
Section titled “getBombs()”getBombs(
bombVariant?,subType?): readonlyEntityBomb[]
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:35
Helper function to get all of the bombs in the room. (Specifically, this refers to the
EntityBomb class, not bomb pickups.)
For example:
// Make all of the bombs in the room invisible.for (const bomb of getBombs()) { bomb.Visible = false;}Parameters
Section titled “Parameters”bombVariant?
Section titled “bombVariant?”-1 | BombVariant
Optional. If specified, will only get the bombs that match the variant. Default is -1, which matches every variant.
subType?
Section titled “subType?”number = -1
Optional. If specified, will only get the bombs that match the sub-type. Default is -1, which matches every sub-type.
Returns
Section titled “Returns”readonly EntityBomb[]
getEffects()
Section titled “getEffects()”getEffects(
effectVariant?,subType?): readonlyEntityEffect[]
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:69
Helper function to get all of the effects in the room.
For example:
// Make all of the effects in the room invisible.for (const effect of getEffects()) { effect.Visible = false;}Parameters
Section titled “Parameters”effectVariant?
Section titled “effectVariant?”-1 | EffectVariant
Optional. If specified, will only get the effects that match the variant. Default is -1, which matches every variant.
subType?
Section titled “subType?”number = -1
Optional. If specified, will only get the effects that match the sub-type. Default is -1, which matches every sub-type.
Returns
Section titled “Returns”readonly EntityEffect[]
getFamiliars()
Section titled “getFamiliars()”getFamiliars(
familiarVariant?,subType?): readonlyEntityFamiliar[]
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:103
Helper function to get all of the familiars in the room.
For example:
// Make all of the familiars in the room invisible.for (const familiar of getFamiliars()) { familiar.Visible = false;}Parameters
Section titled “Parameters”familiarVariant?
Section titled “familiarVariant?”-1 | FamiliarVariant
Optional. If specified, will only get the familiars that match the variant. Default is -1, which matches every variant.
subType?
Section titled “subType?”number = -1
Optional. If specified, will only get the familiars that match the sub-type. Default is -1, which matches every sub-type.
Returns
Section titled “Returns”readonly EntityFamiliar[]
getKnives()
Section titled “getKnives()”getKnives(
knifeVariant?,subType?): readonlyEntityKnife[]
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:137
Helper function to get all of the knives in the room.
For example:
// Make all of the knives in the room invisible.for (const knife of getKnives()) { knife.Visible = false;}Parameters
Section titled “Parameters”knifeVariant?
Section titled “knifeVariant?”-1 | KnifeVariant
Optional. If specified, will only get the knives that match the variant. Default is -1, which matches every variant.
subType?
Section titled “subType?”number = -1
Optional. If specified, will only get the knives that match the sub-type. Default is -1, which matches every sub-type.
Returns
Section titled “Returns”readonly EntityKnife[]
getLasers()
Section titled “getLasers()”getLasers(
laserVariant?,subType?): readonlyEntityLaser[]
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:171
Helper function to get all of the lasers in the room.
For example:
// Make all of the lasers in the room invisible.for (const laser of getLasers()) { laser.Visible = false;}Parameters
Section titled “Parameters”laserVariant?
Section titled “laserVariant?”-1 | LaserVariant
Optional. If specified, will only get the lasers that match the variant. Default is -1, which matches every variant.
subType?
Section titled “subType?”number = -1
Optional. If specified, will only get the lasers that match the sub-type. Default is -1, which matches every sub-type.
Returns
Section titled “Returns”readonly EntityLaser[]
getNPCs()
Section titled “getNPCs()”getNPCs(
entityType?,variant?,subType?,ignoreFriendly?): readonlyEntityNPC[]
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:201
Helper function to get all of the NPCs in the room.
Parameters
Section titled “Parameters”entityType?
Section titled “entityType?”-1 | EntityType
Optional. If specified, will only get the NPCs that match the type. Default is -1, which matches every entity type.
variant?
Section titled “variant?”number = -1
Optional. If specified, will only get the NPCs that match the variant. Default is -1, which matches every entity type.
subType?
Section titled “subType?”number = -1
Optional. If specified, will only get the bombs that match the sub-type. Default is -1, which matches every sub-type.
ignoreFriendly?
Section titled “ignoreFriendly?”boolean = false
Optional. If set to true, it will exclude friendly NPCs from being
returned. Default is false. Will only be taken into account if the
entityType is specified.
Returns
Section titled “Returns”readonly EntityNPC[]
getPickups()
Section titled “getPickups()”getPickups(
pickupVariant?,subType?): readonlyEntityPickup[]
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:237
Helper function to get all of the pickups in the room.
For example:
// Make all of the pickups in the room invisible.for (const pickup of getPickups()) { pickup.Visible = false;}Parameters
Section titled “Parameters”pickupVariant?
Section titled “pickupVariant?”-1 | PickupVariant
Optional. If specified, will only get the pickups that match the variant. Default is -1, which matches every entity type.
subType?
Section titled “subType?”number = -1
Optional. If specified, will only get the pickups that match the sub-type. Default is -1, which matches every sub-type.
Returns
Section titled “Returns”readonly EntityPickup[]
getProjectiles()
Section titled “getProjectiles()”getProjectiles(
projectileVariant?,subType?): readonlyEntityProjectile[]
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:271
Helper function to get all of the projectiles in the room.
For example:
// Make all of the projectiles in the room invisible.for (const projectile of getProjectiles()) { projectile.Visible = false;}Parameters
Section titled “Parameters”projectileVariant?
Section titled “projectileVariant?”-1 | ProjectileVariant
Optional. If specified, will only get the projectiles that match the variant. Default is -1, which matches every entity type.
subType?
Section titled “subType?”number = -1
Optional. If specified, will only get the projectiles that match the sub-type. Default is -1, which matches every sub-type.
Returns
Section titled “Returns”readonly EntityProjectile[]
getSlots()
Section titled “getSlots()”getSlots(
slotVariant?,subType?): readonlyEntitySlot[]
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:309
Helper function to get all of the slots in the room.
For example:
// Make all of the slots in the room invisible.for (const slot of getSlots()) { slot.Visible = false;}Parameters
Section titled “Parameters”slotVariant?
Section titled “slotVariant?”-1 | SlotVariant
Optional. If specified, will only get the slots that match the variant. Default is -1, which matches every entity type.
subType?
Section titled “subType?”number = -1
Optional. If specified, will only get the slots that match the sub-type. Default is -1, which matches every sub-type.
Returns
Section titled “Returns”readonly EntitySlot[]
getTears()
Section titled “getTears()”getTears(
tearVariant?,subType?): readonlyEntityTear[]
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:335
Helper function to get all of the tears in the room.
For example:
// Make all of the tears in the room invisible.for (const tear of getTears()) { tear.Visible = false;}Parameters
Section titled “Parameters”tearVariant?
Section titled “tearVariant?”-1 | TearVariant
Optional. If specified, will only get the tears that match the variant. Default is -1, which matches every entity type.
subType?
Section titled “subType?”number = -1
Optional. If specified, will only get the tears that match the sub-type. Default is -1, which matches every sub-type.
Returns
Section titled “Returns”readonly EntityTear[]
removeAllBombs()
Section titled “removeAllBombs()”removeAllBombs(
bombVariant?,subType?,cap?): readonlyEntityBomb[]
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:363
Helper function to remove all of the bombs in the room. (Specifically, this refers to the
EntityBomb class, not bomb pickups.)
Parameters
Section titled “Parameters”bombVariant?
Section titled “bombVariant?”-1 | BombVariant
Optional. If specified, will only remove the bombs that match the variant. Default is -1, which matches every variant.
subType?
Section titled “subType?”number = -1
Optional. If specified, will only remove the bombs that match the sub-type. Default is -1, which matches every sub-type.
int
Optional. If specified, will only remove the given amount of bombs.
Returns
Section titled “Returns”readonly EntityBomb[]
An array of the bombs that were removed.
removeAllEffects()
Section titled “removeAllEffects()”removeAllEffects(
effectVariant?,subType?,cap?): readonlyEntityEffect[]
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:382
Helper function to remove all of the effects in the room.
Parameters
Section titled “Parameters”effectVariant?
Section titled “effectVariant?”-1 | EffectVariant
Optional. If specified, will only remove the effects that match the variant. Default is -1, which matches every variant.
subType?
Section titled “subType?”number = -1
Optional. If specified, will only remove the effects that match the sub-type. Default is -1, which matches every sub-type.
int
Optional. If specified, will only remove the given amount of effects.
Returns
Section titled “Returns”readonly EntityEffect[]
An array of the effects that were removed.
removeAllFamiliars()
Section titled “removeAllFamiliars()”removeAllFamiliars(
familiarVariant?,subType?,cap?): readonlyEntityFamiliar[]
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:401
Helper function to remove all of the familiars in the room.
Parameters
Section titled “Parameters”familiarVariant?
Section titled “familiarVariant?”-1 | FamiliarVariant
Optional. If specified, will only remove the familiars that match the variant. Default is -1, which matches every variant.
subType?
Section titled “subType?”number = -1
Optional. If specified, will only remove the familiars that match the sub-type. Default is -1, which matches every sub-type.
int
Optional. If specified, will only remove the given amount of familiars.
Returns
Section titled “Returns”readonly EntityFamiliar[]
An array of the familiars that were removed.
removeAllKnives()
Section titled “removeAllKnives()”removeAllKnives(
knifeVariant?,subType?,cap?): readonlyEntityKnife[]
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:420
Helper function to remove all of the knives in the room.
Parameters
Section titled “Parameters”knifeVariant?
Section titled “knifeVariant?”-1 | KnifeVariant
Optional. If specified, will only remove the knives that match the variant. Default is -1, which matches every variant.
subType?
Section titled “subType?”number = -1
Optional. If specified, will only remove the knives that match the sub-type. Default is -1, which matches every sub-type.
int
Optional. If specified, will only remove the given amount of knives.
Returns
Section titled “Returns”readonly EntityKnife[]
An array of the knives that were removed.
removeAllLasers()
Section titled “removeAllLasers()”removeAllLasers(
laserVariant?,subType?,cap?): readonlyEntityLaser[]
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:439
Helper function to remove all of the lasers in the room.
Parameters
Section titled “Parameters”laserVariant?
Section titled “laserVariant?”-1 | LaserVariant
Optional. If specified, will only remove the lasers that match the variant. Default is -1, which matches every variant.
subType?
Section titled “subType?”number = -1
Optional. If specified, will only remove the lasers that match the sub-type. Default is -1, which matches every sub-type.
int
Optional. If specified, will only remove the given amount of lasers.
Returns
Section titled “Returns”readonly EntityLaser[]
An array of the lasers that were removed.
removeAllNPCs()
Section titled “removeAllNPCs()”removeAllNPCs(
entityType?,variant?,subType?,cap?): readonlyEntityNPC[]
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:460
Helper function to remove all of the NPCs in the room.
Parameters
Section titled “Parameters”entityType?
Section titled “entityType?”-1 | EntityType
Optional. If specified, will only remove the NPCs that match the type. Default is -1, which matches every type.
variant?
Section titled “variant?”number = -1
Optional. If specified, will only remove the NPCs that match the variant. Default is -1, which matches every variant.
subType?
Section titled “subType?”number = -1
Optional. If specified, will only remove the NPCs that match the sub-type. Default is -1, which matches every sub-type.
int
Optional. If specified, will only remove the given amount of NPCs.
Returns
Section titled “Returns”readonly EntityNPC[]
An array of the NPCs that were removed.
removeAllPickups()
Section titled “removeAllPickups()”removeAllPickups(
pickupVariant?,subType?,cap?): readonlyEntityPickup[]
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:480
Helper function to remove all of the pickups in the room.
Parameters
Section titled “Parameters”pickupVariant?
Section titled “pickupVariant?”-1 | PickupVariant
Optional. If specified, will only remove pickups that match this variant. Default is -1, which matches every variant.
subType?
Section titled “subType?”number = -1
Optional. If specified, will only remove pickups that match this sub-type. Default is -1, which matches every sub-type.
int
Optional. If specified, will only remove the given amount of pickups.
Returns
Section titled “Returns”readonly EntityPickup[]
An array of the pickups that were removed.
removeAllProjectiles()
Section titled “removeAllProjectiles()”removeAllProjectiles(
projectileVariant?,subType?,cap?): readonlyEntityProjectile[]
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:499
Helper function to remove all of the projectiles in the room.
Parameters
Section titled “Parameters”projectileVariant?
Section titled “projectileVariant?”-1 | ProjectileVariant
Optional. If specified, will only remove projectiles that match this variant. Default is -1, which matches every variant.
subType?
Section titled “subType?”number = -1
Optional. If specified, will only remove projectiles that match this sub-type. Default is -1, which matches every sub-type.
int
Optional. If specified, will only remove the given amount of projectiles.
Returns
Section titled “Returns”readonly EntityProjectile[]
An array of the projectiles that were removed.
removeAllSlots()
Section titled “removeAllSlots()”removeAllSlots(
slotVariant?,subType?,cap?): readonlyEntity[]
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:518
Helper function to remove all of the slots in the room.
Parameters
Section titled “Parameters”slotVariant?
Section titled “slotVariant?”-1 | SlotVariant
Optional. If specified, will only remove slots that match this variant. Default is -1, which matches every variant.
subType?
Section titled “subType?”number = -1
Optional. If specified, will only remove slots that match this sub-type. Default is -1, which matches every sub-type.
int
Optional. If specified, will only remove the given amount of slots.
Returns
Section titled “Returns”readonly Entity[]
An array of the slots that were removed.
removeAllTears()
Section titled “removeAllTears()”removeAllTears(
tearVariant?,subType?,cap?): readonlyEntityTear[]
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:537
Helper function to remove all of the tears in the room.
Parameters
Section titled “Parameters”tearVariant?
Section titled “tearVariant?”-1 | TearVariant
Optional. If specified, will only remove tears that match this variant. Default is -1, which matches every variant.
subType?
Section titled “subType?”number = -1
Optional. If specified, will only remove tears that match this sub-type. Default is -1, which matches every sub-type.
int
Optional. If specified, will only remove the given amount of tears.
Returns
Section titled “Returns”readonly EntityTear[]
An array of the tears that were removed.
spawnBomb()
Section titled “spawnBomb()”spawnBomb(
bombVariant,subType,positionOrGridIndex,velocity?,spawner?,seedOrRNG?):EntityBomb
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:547
Helper function to spawn a EntityType.BOMB (4).
Parameters
Section titled “Parameters”bombVariant
Section titled “bombVariant”BombVariant
subType
Section titled “subType”int
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
seedOrRNG?
Section titled “seedOrRNG?”RNG | Seed
Returns
Section titled “Returns”EntityBomb
spawnBombWithSeed()
Section titled “spawnBombWithSeed()”spawnBombWithSeed(
bombVariant,subType,positionOrGridIndex,seedOrRNG,velocity?,spawner?):EntityBomb
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:572
Helper function to spawn a EntityType.BOMB (4) with a specific seed.
Parameters
Section titled “Parameters”bombVariant
Section titled “bombVariant”BombVariant
subType
Section titled “subType”int
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
seedOrRNG
Section titled “seedOrRNG”RNG | Seed
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
Returns
Section titled “Returns”EntityBomb
spawnEffect()
Section titled “spawnEffect()”spawnEffect(
effectVariant,subType,positionOrGridIndex,velocity?,spawner?,seedOrRNG?):EntityEffect
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:591
Helper function to spawn a EntityType.EFFECT (1000).
Parameters
Section titled “Parameters”effectVariant
Section titled “effectVariant”EffectVariant
subType
Section titled “subType”int
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
seedOrRNG?
Section titled “seedOrRNG?”RNG | Seed
Returns
Section titled “Returns”EntityEffect
spawnEffectWithSeed()
Section titled “spawnEffectWithSeed()”spawnEffectWithSeed(
effectVariant,subType,positionOrGridIndex,seedOrRNG,velocity?,spawner?):EntityEffect
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:616
Helper function to spawn a EntityType.EFFECT (1000) with a specific seed.
Parameters
Section titled “Parameters”effectVariant
Section titled “effectVariant”EffectVariant
subType
Section titled “subType”int
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
seedOrRNG
Section titled “seedOrRNG”RNG | Seed
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
Returns
Section titled “Returns”EntityEffect
spawnFamiliar()
Section titled “spawnFamiliar()”spawnFamiliar(
familiarVariant,subType,positionOrGridIndex,velocity?,spawner?,seedOrRNG?):EntityFamiliar
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:640
Helper function to spawn a EntityType.FAMILIAR (3).
If you are trying to implement a custom familiar, you probably want to use the
checkFamiliarFromCollectibles helper function instead.
Parameters
Section titled “Parameters”familiarVariant
Section titled “familiarVariant”FamiliarVariant
subType
Section titled “subType”int
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
seedOrRNG?
Section titled “seedOrRNG?”RNG | Seed
Returns
Section titled “Returns”EntityFamiliar
spawnFamiliarWithSeed()
Section titled “spawnFamiliarWithSeed()”spawnFamiliarWithSeed(
familiarVariant,subType,positionOrGridIndex,seedOrRNG,velocity?,spawner?):EntityFamiliar
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:665
Helper function to spawn a EntityType.FAMILIAR (3) with a specific seed.
Parameters
Section titled “Parameters”familiarVariant
Section titled “familiarVariant”FamiliarVariant
subType
Section titled “subType”int
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
seedOrRNG
Section titled “seedOrRNG”RNG | Seed
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
Returns
Section titled “Returns”EntityFamiliar
spawnKnife()
Section titled “spawnKnife()”spawnKnife(
knifeVariant,subType,positionOrGridIndex,velocity?,spawner?,seedOrRNG?):EntityKnife
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:684
Helper function to spawn a EntityType.KNIFE (8).
Parameters
Section titled “Parameters”knifeVariant
Section titled “knifeVariant”KnifeVariant
subType
Section titled “subType”int
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
seedOrRNG?
Section titled “seedOrRNG?”RNG | Seed
Returns
Section titled “Returns”EntityKnife
spawnKnifeWithSeed()
Section titled “spawnKnifeWithSeed()”spawnKnifeWithSeed(
knifeVariant,subType,positionOrGridIndex,seedOrRNG,velocity?,spawner?):EntityKnife
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:709
Helper function to spawn a EntityType.KNIFE (8) with a specific seed.
Parameters
Section titled “Parameters”knifeVariant
Section titled “knifeVariant”KnifeVariant
subType
Section titled “subType”int
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
seedOrRNG
Section titled “seedOrRNG”RNG | Seed
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
Returns
Section titled “Returns”EntityKnife
spawnLaser()
Section titled “spawnLaser()”spawnLaser(
laserVariant,subType,positionOrGridIndex,velocity?,spawner?,seedOrRNG?):EntityLaser
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:728
Helper function to spawn a EntityType.LASER (7).
Parameters
Section titled “Parameters”laserVariant
Section titled “laserVariant”LaserVariant
subType
Section titled “subType”int
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
seedOrRNG?
Section titled “seedOrRNG?”RNG | Seed
Returns
Section titled “Returns”EntityLaser
spawnLaserWithSeed()
Section titled “spawnLaserWithSeed()”spawnLaserWithSeed(
laserVariant,subType,positionOrGridIndex,seedOrRNG,velocity?,spawner?):EntityLaser
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:753
Helper function to spawn a EntityType.LASER (7) with a specific seed.
Parameters
Section titled “Parameters”laserVariant
Section titled “laserVariant”LaserVariant
subType
Section titled “subType”int
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
seedOrRNG
Section titled “seedOrRNG”RNG | Seed
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
Returns
Section titled “Returns”EntityLaser
spawnNPC()
Section titled “spawnNPC()”spawnNPC(
entityType,variant,subType,positionOrGridIndex,velocity?,spawner?,seedOrRNG?):EntityNPC
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:777
Helper function to spawn an NPC.
Note that if you pass a non-NPC EntityType to this function, it will cause a run-time error,
since the Entity.ToNPC method will return undefined.
Parameters
Section titled “Parameters”entityType
Section titled “entityType”EntityType
variant
Section titled “variant”int
subType
Section titled “subType”int
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
seedOrRNG?
Section titled “seedOrRNG?”RNG | Seed
Returns
Section titled “Returns”EntityNPC
spawnNPCWithSeed()
Section titled “spawnNPCWithSeed()”spawnNPCWithSeed(
entityType,variant,subType,positionOrGridIndex,seedOrRNG,velocity?,spawner?):EntityNPC
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:808
Helper function to spawn an NPC with a specific seed.
Note that if you pass a non-NPC EntityType to this function, it will cause a run-time error,
since the Entity.ToNPC method will return undefined.
Parameters
Section titled “Parameters”entityType
Section titled “entityType”EntityType
variant
Section titled “variant”int
subType
Section titled “subType”int
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
seedOrRNG
Section titled “seedOrRNG”RNG | Seed
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
Returns
Section titled “Returns”EntityNPC
spawnPickup()
Section titled “spawnPickup()”spawnPickup(
pickupVariant,subType,positionOrGridIndex,velocity?,spawner?,seedOrRNG?):EntityPickup
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:829
Helper function to spawn a EntityType.PICKUP (5).
Parameters
Section titled “Parameters”pickupVariant
Section titled “pickupVariant”PickupVariant
subType
Section titled “subType”int
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
seedOrRNG?
Section titled “seedOrRNG?”RNG | Seed
Returns
Section titled “Returns”EntityPickup
spawnPickupWithSeed()
Section titled “spawnPickupWithSeed()”spawnPickupWithSeed(
pickupVariant,subType,positionOrGridIndex,seedOrRNG,velocity?,spawner?):EntityPickup
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:854
Helper function to spawn a EntityType.PICKUP (5) with a specific seed.
Parameters
Section titled “Parameters”pickupVariant
Section titled “pickupVariant”PickupVariant
subType
Section titled “subType”int
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
seedOrRNG
Section titled “seedOrRNG”RNG | Seed
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
Returns
Section titled “Returns”EntityPickup
spawnProjectile()
Section titled “spawnProjectile()”spawnProjectile(
projectileVariant,subType,positionOrGridIndex,velocity?,spawner?,seedOrRNG?):EntityProjectile
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:873
Helper function to spawn a EntityType.PROJECTILE (9).
Parameters
Section titled “Parameters”projectileVariant
Section titled “projectileVariant”ProjectileVariant
subType
Section titled “subType”int
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
seedOrRNG?
Section titled “seedOrRNG?”RNG | Seed
Returns
Section titled “Returns”EntityProjectile
spawnProjectileWithSeed()
Section titled “spawnProjectileWithSeed()”spawnProjectileWithSeed(
projectileVariant,subType,positionOrGridIndex,seedOrRNG,velocity?,spawner?):EntityProjectile
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:898
Helper function to spawn a EntityType.PROJECTILE (9) with a specific seed.
Parameters
Section titled “Parameters”projectileVariant
Section titled “projectileVariant”ProjectileVariant
subType
Section titled “subType”int
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
seedOrRNG
Section titled “seedOrRNG”RNG | Seed
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
Returns
Section titled “Returns”EntityProjectile
spawnSlot()
Section titled “spawnSlot()”spawnSlot(
slotVariant,subType,positionOrGridIndex,velocity?,spawner?,seedOrRNG?):EntitySlot
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:917
Helper function to spawn a EntityType.SLOT (6).
Parameters
Section titled “Parameters”slotVariant
Section titled “slotVariant”SlotVariant
subType
Section titled “subType”int
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
seedOrRNG?
Section titled “seedOrRNG?”RNG | Seed
Returns
Section titled “Returns”EntitySlot
spawnSlotWithSeed()
Section titled “spawnSlotWithSeed()”spawnSlotWithSeed(
slotVariant,subType,positionOrGridIndex,seedOrRNG,velocity?,spawner?):EntitySlot
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:937
Helper function to spawn a EntityType.SLOT (6) with a specific seed.
Parameters
Section titled “Parameters”slotVariant
Section titled “slotVariant”SlotVariant
subType
Section titled “subType”int
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
seedOrRNG
Section titled “seedOrRNG”RNG | Seed
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
Returns
Section titled “Returns”EntitySlot
spawnTear()
Section titled “spawnTear()”spawnTear(
tearVariant,subType,positionOrGridIndex,velocity?,spawner?,seedOrRNG?):EntityTear
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:956
Helper function to spawn a EntityType.TEAR (2).
Parameters
Section titled “Parameters”tearVariant
Section titled “tearVariant”TearVariant
subType
Section titled “subType”int
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
seedOrRNG?
Section titled “seedOrRNG?”RNG | Seed
Returns
Section titled “Returns”EntityTear
spawnTearWithSeed()
Section titled “spawnTearWithSeed()”spawnTearWithSeed(
tearVariant,subType,positionOrGridIndex,seedOrRNG,velocity?,spawner?):EntityTear
Defined in: packages/isaacscript-common/src/functions/entitiesSpecific.ts:981
Helper function to spawn a EntityType.EntityType (2) with a specific seed.
Parameters
Section titled “Parameters”tearVariant
Section titled “tearVariant”TearVariant
subType
Section titled “subType”int
positionOrGridIndex
Section titled “positionOrGridIndex”int | Vector
seedOrRNG
Section titled “seedOrRNG”RNG | Seed
velocity?
Section titled “velocity?”Vector = VectorZero
spawner?
Section titled “spawner?”Entity
Returns
Section titled “Returns”EntityTear
