> For the complete documentation index, see [llms.txt](https://docs.moddingofisaac.com/ab_p/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.moddingofisaac.com/ab_p/beta/docs/entity.md).

# Class "Entity"

## Functions

### AddBurn () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### void AddBurn ( [EntityRef](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/EntityRef/README.md) Source, int Duration, float Damage ) {: .copyable aria-label='Functions' }

Adds a burn-effect to an enemy. Duration is in Number of Frames. Damage is the Damage taken per frame.

???- example "Example Code" This code damages every entity in the room for 1 second with the damagesource set to the player. The total damage dealt is 30.

```lua
    local player =Isaac.GetPlayer(0)
    for i, entity in ipairs(Isaac.GetRoomEntities()) do
        entity:AddBurn(player,30,1)
    end
```

### AddCharmed () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### void AddCharmed ( int Duration ) {: .copyable aria-label='Functions' }

Adds a charmed-effect to an enemy. Duration is in Number of Frames. Charmed enemies are friendly towards isaac and attack other enemies.

`:::lua AddCharmed(-1)` makes the effect permanent and the enemy will follow you even to different rooms.

???- example "Example Code" This code charms every entity in the room for 1 second.

```lua
    for i, entity in ipairs(Isaac.GetRoomEntities()) do
        entity:AddCharmed(30)
    end
```

### AddConfusion () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### void AddConfusion ( [EntityRef](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/EntityRef/README.md) Source, int Duration, boolean IgnoreBosses ) {: .copyable aria-label='Functions' }

Adds a confusion effect to an entity.

???- example "Example Code" This code confuses every entity in the room for 1 second while ignoring bosses.

```lua
    local player =Isaac.GetPlayer(0) 
    for i, entity in ipairs(Isaac.GetRoomEntities()) do
        entity:AddConfusion(player,30,true)
    end
```

### AddEntityFlags () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### void AddEntityFlags ( int Flags ) {: .copyable aria-label='Functions' }

Add [EntityFlags](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/EntityFlag/README.md) to the entity. Flags are used to add specific effects like poisoning or freeze. You can add multiple flags at the same time by bitwise-concatenating them.

???- example "Example Code" This code adds slowing and confusion to the enetity.

```lua
    local player =Isaac.GetPlayer(0) 
    for i, entity in ipairs(Isaac.GetRoomEntities()) do
        entity:AddEntityFlags(EntityFlag.FLAG_SLOW | EntityFlag.FLAG_CONFUSION)
    end
```

### AddFear () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### void AddFear ( [EntityRef](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/EntityRef/README.md) Source, int Duration ) {: .copyable aria-label='Functions' }

Adds a fear-effect to an entity.

???- example "Example Code" This code frightens every entity in the room for 1 second.

```lua
    local player =Isaac.GetPlayer(0) 
    for i, entity in ipairs(Isaac.GetRoomEntities()) do
        entity:AddFear(player, 30)
    end
```

### AddFreeze () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### void AddFreeze ( [EntityRef](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/EntityRef/README.md) Source, int Duration ) {: .copyable aria-label='Functions' }

Freezes an entity, making it unable to move and attack.

???- example "Example Code" This code freezes every entity in the room for half a second.

```lua
    local player =Isaac.GetPlayer(0) 
    for i, entity in ipairs(Isaac.GetRoomEntities()) do
        entity:AddFreeze(player, 30)
    end
```

### AddHealth () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### void AddHealth ( float HitPoints ) {: .copyable aria-label='Functions' }

Heals an entity.

### AddMidasFreeze () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### void AddMidasFreeze ( [EntityRef](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/EntityRef/README.md) Source, int Duration ) {: .copyable aria-label='Functions' }

Turns the entity into a gold statue (can't move, can't attack, drops coins when killed)

### AddPoison () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### void AddPoison ( [EntityRef](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/EntityRef/README.md) Source, int Duration, float Damage ) {: .copyable aria-label='Functions' }

Adds a poison effect to the entity.

### AddShrink () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### void AddShrink ( [EntityRef](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/EntityRef/README.md) Source, int Duration ) {: .copyable aria-label='Functions' }

Adds a shrink effect to the entity.

### AddSlowing () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### void AddSlowing ( [EntityRef](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/EntityRef/README.md) Source, int Duration, float SlowValue, [Color](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Color/README.md) SlowColor ) {: .copyable aria-label='Functions' }

Makes the friction higher.

### AddVelocity () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### void AddVelocity ( [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) Velocity ) {: .copyable aria-label='Functions' }

Adds velocity to the entity. This can be used to move him in a certain direktion (for example as a result of collision)

### BloodExplode () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### void BloodExplode ( ) {: .copyable aria-label='Functions' }

Explodes with gibs and blood.

### CanShutDoors () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### boolean CanShutDoors ( ) {: .copyable aria-label='Functions' }

enemies keep the doors shut.

### ClearEntityFlags () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### void ClearEntityFlags ( int Flags ) {: .copyable aria-label='Functions' }

Removes all [EntityFlags](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/EntityFlag/README.md) from the entity.

### CollidesWithGrid () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### boolean CollidesWithGrid ( ) {: .copyable aria-label='Functions' }

Returns true, if the entity is able to collide with the grid.

### Die () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### void Die ( ) {: .copyable aria-label='Functions' }

Kills the entity and trigger its death animation.

### Exists () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### boolean Exists ( ) {: .copyable aria-label='Functions' }

Returns true, if this entity still exists.

### GetBossID () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### BossId GetBossID ( ) {: .copyable aria-label='Functions' }

If the entity is a boss, it returns its specific boss id. If it isnt a boss it will return 0.

### GetColor () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [Color](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Color/README.md) GetColor ( ) {: .copyable aria-label='Functions' }

Returns the Color object assosiated to this entity.

### GetData () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### table GetData ( ) {: .copyable aria-label='Functions' }

Returns a table that contains all data assosiated with the entity. This can be used to add custom data as well.

???- note "Notes" Data associated with an entity does only persists in between rooms, when the entity is a player, familiar or the entity has the "EntityFlag.FLAG\_PERSISTENT" Flag active. Data does not persists in between exiting the game to a menu, or when restarting/finishing a run.

???- example "Example Code" This code adds custom data to an entity or prints it in the console if it exists.

```lua
    if type(entity:GetData()["MyValue"]) == type(nil) then -- checks, if the Data does exist already
    entity:GetData()["MyValue"] = "Cool" -- assign a value to the data
    else 
    print(entity:GetData()["MyValue"])  -- this will print "Cool" in the console
    end
```

### GetDropRNG () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [RNG](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/RNG/README.md) GetDropRNG ( ) {: .copyable aria-label='Functions' }

Returns the assigned RNG object for the entity. This RNG is used to determine the items that are dropped on the entities death.

### GetEntityFlags () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### int GetEntityFlags ( ) {: .copyable aria-label='Functions' }

Get the [EntityFlags](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/EntityFlag/README.md)of the entity. This will be a number which acts like a bitmask.

???- example "Example Code" This code prints something in the console, if the entity has a specific [EntityFlags](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/EntityFlag/README.md).

```lua
    if entity:GetEntityFlags() &amp; EntityFlag.FLAG_CONFUSION == EntityFlag.FLAG_CONFUSION then
    print("This entity is confused!")
    end
```

### GetLastChild () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [Entity](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Entity/README.md) GetLastChild ( ) {: .copyable aria-label='Functions' }

Returns the last entity spawned by this entity.

### GetLastParent () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [Entity](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Entity/README.md) GetLastParent ( ) {: .copyable aria-label='Functions' }

Returns the last parent of this entity.

### GetSprite () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [Sprite](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Sprite/README.md) GetSprite ( ) {: .copyable aria-label='Functions' }

Return the sprite object of the entity.

### HasCommonParentWithEntity () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### boolean HasCommonParentWithEntity ( [Entity](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Entity/README.md) Other ) {: .copyable aria-label='Functions' }

### HasEntityFlags () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### boolean HasEntityFlags ( int Flags ) {: .copyable aria-label='Functions' }

Returns true, if the entity has all named [EntityFlags](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/EntityFlag/README.md) set.

???- example "Example Code" This code prints something in the console, if the entity has a specific [EntityFlags](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/EntityFlag/README.md).

```lua
    if entity:HasEntityFlags(EntityFlag.FLAG_CONFUSION) then
    print("This entity is confused!")
    end
```

### HasFullHealth () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### boolean HasFullHealth ( ) {: .copyable aria-label='Functions' }

### HasMortalDamage () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### boolean HasMortalDamage ( ) {: .copyable aria-label='Functions' }

???- note "Notes" The game adds taken damage to a damage buffer, which gets applied in the next frame. HasMortalDamage() returns true if the buffered damage is enough to kill the entity. HasMortalDamage() will be updated additionally after TakeDamage() is called.

### IsActiveEnemy () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### boolean IsActiveEnemy ( boolean includeDead ) {: .copyable aria-label='Functions' }

return true for non background NPCs (ex: every enemy except fire and shopkeepers)

### IsBoss () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### boolean IsBoss ( ) {: .copyable aria-label='Functions' }

bosses display health bar

### IsDead () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### boolean IsDead ( ) {: .copyable aria-label='Functions' }

### IsEnemy () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### boolean IsEnemy ( ) {: .copyable aria-label='Functions' }

return true for NPCs that are not controlled by the player

### IsFlying () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### boolean IsFlying ( ) {: .copyable aria-label='Functions' }

### IsFrame () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### boolean IsFrame ( int Frame, int Offset ) {: .copyable aria-label='Functions' }

true every X frames

### IsInvincible () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### boolean IsInvincible ( ) {: .copyable aria-label='Functions' }

### IsVisible () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### boolean IsVisible ( ) {: .copyable aria-label='Functions' }

### IsVulnerableEnemy () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### boolean IsVulnerableEnemy ( ) {: .copyable aria-label='Functions' }

return true for enemies that can be damaged

### Kill () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### void Kill ( ) {: .copyable aria-label='Functions' }

Kills the entity and makes a blood splat or gibs.

### MultiplyFriction () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### void MultiplyFriction ( float Value ) {: .copyable aria-label='Functions' }

### PostRender () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### void PostRender ( ) {: .copyable aria-label='Functions' }

### Remove () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### void Remove ( ) {: .copyable aria-label='Functions' }

Remove the entity from the game instantly, without doing any additional effects/animations.

### RemoveStatusEffects () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### void RemoveStatusEffects ( ) {: .copyable aria-label='Functions' }

Removes all Status Effects from the entity.

### Render () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### void Render ( [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) Offset ) {: .copyable aria-label='Functions' }

Render the current sprite of the Entity at the current entity position + offset.

### RenderShadowLayer () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### boolean RenderShadowLayer ( [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) Offset ) {: .copyable aria-label='Functions' }

Render the shadow / shadow layer again.

### SetColor () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### void SetColor ( [Color](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Color/README.md) Color, int Duration, int Priority, boolean Fadeout, boolean Share ) {: .copyable aria-label='Functions' }

Set the colormask for the entity. This can be used to tint the sprites in different colors.

???- example "Example Code" This code changes the color of the sprite to a fully white sprite for 15 frames.

```lua
    entity:SetColor(Color(1,1,1,1,255,255,255),15,1,false,false)
```

### SetSize () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### void SetSize ( float Size, [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) SizeMulti, int NumGridCollisionPoints ) {: .copyable aria-label='Functions' }

Set the size ofthe entity.

### SetSpriteFrame () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### void SetSpriteFrame ( string AnimationName, int FrameNum ) {: .copyable aria-label='Functions' }

### SetSpriteOverlayFrame () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### void SetSpriteOverlayFrame ( string AnimationName, int FrameNum ) {: .copyable aria-label='Functions' }

### TakeDamage () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### boolean TakeDamage ( float Damage, int Flags, [EntityRef](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/EntityRef/README.md) Source, int DamageCountdown ) {: .copyable aria-label='Functions' }

???- note "Notes" The game adds taken damage to a damage buffer, which gets applied in the next frame. Therefore, TakeDamage() will not decremented the entities HP immediately upon calling the function. Rather, it is only updated on the frame afterwards.

### ToBomb () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [EntityBomb](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/EntityBomb/README.md) ToBomb ( ) {: .copyable aria-label='Functions' }

### ToEffect () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [EntityEffect](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/EntityEffect/README.md) ToEffect ( ) {: .copyable aria-label='Functions' }

### ToFamiliar () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [EntityFamiliar](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/EntityFamiliar/README.md) ToFamiliar ( ) {: .copyable aria-label='Functions' }

### ToKnife () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [EntityKnife](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/EntityKnife/README.md) ToKnife ( ) {: .copyable aria-label='Functions' }

### ToLaser () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [EntityLaser](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/EntityLaser/README.md) ToLaser ( ) {: .copyable aria-label='Functions' }

### ToNPC () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [EntityNPC](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/EntityNPC/README.md) ToNPC ( ) {: .copyable aria-label='Functions' }

### ToPickup () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [EntityPickup](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/EntityPickup/README.md) ToPickup ( ) {: .copyable aria-label='Functions' }

### ToPlayer () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [EntityPlayer](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/EntityPlayer/README.md) ToPlayer ( ) {: .copyable aria-label='Functions' }

### ToProjectile () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [EntityProjectile](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/EntityProjectile/README.md) ToProjectile ( ) {: .copyable aria-label='Functions' }

### ToTear () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [EntityTear](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/EntityTear/README.md) ToTear ( ) {: .copyable aria-label='Functions' }

### Update () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### void Update ( ) {: .copyable aria-label='Functions' }

### Child () {: aria-label='Functions' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [Entity](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Entity/README.md) Child  {: .copyable aria-label='Functions' }

## Variables

### CollisionDamage {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### float CollisionDamage  {: .copyable aria-label='Variables' }

### DepthOffset {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### float DepthOffset  {: .copyable aria-label='Variables' }

Get/Set the depth-offset of the entity. This value is added to the Y Position of the entity, which is then used to determine the rendering order of each entity. Default value is 0 for all entities.

???- example "Example Code" This code explains how this variable works.

```lua
    entity1.Position.Y -- =&gt; 50
    entity2.Position.Y -- =&gt; 45
    -- Entity1 is rendered in front of Entity2

    entity1.DepthOffset = -10
    -- new Entity1 renderYPosition =&gt; 40
    -- Entity2 is rendered in front of Entity1
```

### DropSeed {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### int DropSeed  {: .copyable aria-label='Variables' }

Get/set the Seed of the Drop RNG.

### [EntityCollisionClass](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/EntityCollisionClass/README.md) {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [EntityCollisionClass](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/EntityCollisionClass/README.md) [EntityCollisionClass](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/EntityCollisionClass/README.md)  {: .copyable aria-label='Variables' }

### FlipX {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### boolean FlipX  {: .copyable aria-label='Variables' }

### FrameCount {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### int FrameCount  {: .copyable aria-label='Variables' }

### Friction {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### float Friction  {: .copyable aria-label='Variables' }

loaded from entity config

### [GridCollisionClass](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/GridCollisionClass/README.md) {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [GridCollisionClass](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/GridCollisionClass/README.md) [GridCollisionClass](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/GridCollisionClass/README.md)  {: .copyable aria-label='Variables' }

### HitPoints {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### float HitPoints  {: .copyable aria-label='Variables' }

???- note "Notes" The HitPoints value is not decremented immediately upon taking damage like you would expect. Rather, it is only updated on the frame after the entity takes damage.

### Index {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### int Index  {: .copyable aria-label='Variables' }

### InitSeed {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### int InitSeed  {: .copyable aria-label='Variables' }

### Mass {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### float Mass  {: .copyable aria-label='Variables' }

### MaxHitPoints {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### float MaxHitPoints  {: .copyable aria-label='Variables' }

### Parent {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [Entity](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Entity/README.md) Parent  {: .copyable aria-label='Variables' }

### Position {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) Position  {: .copyable aria-label='Variables' }

### PositionOffset {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) PositionOffset  {: .copyable aria-label='Variables' }

### RenderZOffset {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### int RenderZOffset  {: .copyable aria-label='Variables' }

???+ bug "Bugs" This variable doesnt seem to do anything useful. Use DepthOffset instead.

### SizeMulti {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) SizeMulti  {: .copyable aria-label='Variables' }

### SpawnerEntity {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [Entity](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Entity/README.md) SpawnerEntity  {: .copyable aria-label='Variables' }

### SpawnerType {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [EntityType](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/EntityType/README.md) SpawnerType  {: .copyable aria-label='Variables' }

### SpawnerVariant {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### int SpawnerVariant  {: .copyable aria-label='Variables' }

### SpawnGridIndex {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### int SpawnGridIndex  {: .copyable aria-label='Variables' }

### SplatColor {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [Color](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Color/README.md) SplatColor  {: .copyable aria-label='Variables' }

### SpriteOffset {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) SpriteOffset  {: .copyable aria-label='Variables' }

### SpriteRotation {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### float SpriteRotation  {: .copyable aria-label='Variables' }

### SpriteScale {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) SpriteScale  {: .copyable aria-label='Variables' }

### SubType {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### int SubType  {: .copyable aria-label='Variables' }

### Target {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [Entity](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Entity/README.md) Target  {: .copyable aria-label='Variables' }

### TargetPosition {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) TargetPosition  {: .copyable aria-label='Variables' }

### Type {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [EntityType](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/enums/EntityType/README.md) Type  {: .copyable aria-label='Variables' }

### Variant {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### int Variant  {: .copyable aria-label='Variables' }

### Velocity {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### [Vector](https://github.com/wofsauge/IsaacDocs/tree/420a6aaa54ea230461fb26e61297c068492684de/beta/Vector/README.md) Velocity  {: .copyable aria-label='Variables' }

### Visible {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### boolean Visible  {: .copyable aria-label='Variables' }

### Size {: aria-label='Variables' }

[ ](/ab_p/beta/docs/entity.md){: .abp .tooltip .badge }

#### float Size  {: .copyable aria-label='Variables' }

Returns the size of the hitbox on an entity.
