Afterbirth+ Documentation
  • README
  • beta
    • docs
      • Class "RoomConfig::Entry"
      • Class "ItemConfig::Card"
      • Class "PlayerTypes::PosVel"
      • enums
        • Enum "DoorVariant"
        • CollectibleType
        • Enum "ActionTriggers"
        • Enum "Card"
        • Enum "NpcState"
        • Enum "EffectVariant"
        • Enum "EntityGridCollisionClass"
        • Enum "EntityFlag"
        • Enum "LocustSubtypes"
        • Enum "LevelCurse"
        • Enum "GridRooms"
        • Enum "TrinketType"
        • Enum "SortingLayer"
        • Enum "ItemType"
        • Enum "GridCollisionClass"
        • Enum "ModCallbacks"
        • Enum "DoorSlot"
        • Enum "CacheFlag"
        • Enum "PillEffect"
        • Enum "EntityCollisionClass"
        • Enum "ItemPoolType"
        • Enum "PickupPrice"
        • Enum "InputHook"
        • Enum "ButtonAction"
        • Enum "PlayerSpriteLayer"
        • Enum "Keyboard"
        • Enum "GameStateFlag"
        • Enum "PillColor"
        • Enum "CoinSubType"
        • Enum "PlayerForm"
        • Enum "PickupVariant"
        • Enum "GridEntityType"
        • Enum "EntityPartition"
        • Enum "SeedEffect"
        • Enum "RoomShape"
        • Enum "Mouse"
        • Enum "TearFlags"
        • Enum "Music"
        • Enum "BabySubType"
        • Enum "BombVariant"
        • Enum "DoorState"
        • Enum "Challenge"
        • Enum "TearVariant"
        • Enum "EntityType"
        • Enum "SoundEffect"
        • Enum "FamiliarVariant"
        • Enum "PlayerType"
        • Enum "Difficulty"
        • Enum "DamageFlag"
        • Enum "Direction"
        • Enum "KeySubType"
        • Enum "LaserOffset"
        • Enum "ProjectileFlags"
        • Enum "LevelStage"
        • Enum "PlayerItemState"
        • Enum "LevelStateFlag"
        • Enum "ChestSubType"
        • Enum "ProjectileVariant"
        • Enum "WeaponType"
        • Enum "RoomType"
        • Enum "NullItemID"
        • Enum "StageType"
        • Enum "HeartSubType"
        • Enum "BombSubType"
      • Class "Isaac"
      • Class "ProjectileParams"
      • Class "Font"
      • Class "ItemPool"
      • Class "GridEntityRock"
      • tutorials
        • Class "[Tutorial]Rendertext"
        • Tutorial: Example Project
        • Class "XMLFiledocumentation"
        • Class "Writingscreenshaders"
        • Class "DebugConsole"
        • [Tutorial] Adding Costumes to items without LUA
        • Class "Usingadditional.luaFiles"
        • [Tutorial] Debugging with ZeroBrane Studio
      • Class "CppContainer::Vector::ItemConfigList"
      • Class "EntityProjectile"
      • Class "CppContainer::ArrayProxy"
      • Class "CppContainer::Vector::CardConfigList"
      • Class "PathFinder"
      • Class "ItemConfig::PillEffect"
      • Class "CppContainer::Vector::EffectList"
      • Class "RoomDescriptor"
      • Class "GridEntity"
      • Class "GridEntityPoop"
      • PLACEHOLDER
      • Class "TearParams"
      • Class "GridEntityPit"
      • Class "EntityFamiliar"
      • Class "MusicManager"
      • Class "SFXManager"
      • Lua API Documentation for The Binding of Isaac - Afterbirth+
      • Class "GridEntityTNT"
      • Class "EntityRef"
      • Class "Sprite"
      • Class "EntityBomb"
      • Class "EntityTear"
      • Class "QueueItemData"
      • Class "EntityPlayer"
      • Class "Vector"
      • Class "Entity"
      • Class "ItemConfig::Config"
      • Class "CppContainer::ArrayProxy::RoomList"
      • Class "RNG"
      • Class "EntityPtr"
      • Class "Input"
      • Class "EntityPickup"
      • Class "EntityLaser"
      • Class "GridEntityPressurePlate"
      • Class "CppContainer::Vector::VectorList"
      • Class "Room"
      • Class "CppContainer::Vector::CostumeConfigList"
      • Class "GridEntityDesc"
      • Class "Level"
      • Class "RoomConfig::Spawn"
      • Class "Color"
      • Class "KColor"
      • Class "TemporaryEffect"
      • Class "EntityKnife"
      • Class "Seeds"
      • Class "CppContainer::EntityList"
      • Class "GridEntityDoor"
      • Class "ShockwaveParams"
      • Class "ItemConfig::Costume"
      • Class "GridEntitySpikes"
      • Class "EntityEffect"
      • Class "CppContainer::Vector::PillConfigList"
      • Class "EntityNPC"
      • Class "RoomDescriptorData"
      • Class "ItemConfig::Item"
      • Class "RoomConfig::Room"
      • Class "Game"
      • Class "TemporaryEffects"
      • Class "PlayerTypes::ActiveItemDesc"
      • Class "Global Functions"
Powered by GitBook
On this page
  • Functions
  • AddBurn () {: aria-label='Functions' }
  • AddCharmed () {: aria-label='Functions' }
  • AddConfusion () {: aria-label='Functions' }
  • AddEntityFlags () {: aria-label='Functions' }
  • AddFear () {: aria-label='Functions' }
  • AddFreeze () {: aria-label='Functions' }
  • AddHealth () {: aria-label='Functions' }
  • AddMidasFreeze () {: aria-label='Functions' }
  • AddPoison () {: aria-label='Functions' }
  • AddShrink () {: aria-label='Functions' }
  • AddSlowing () {: aria-label='Functions' }
  • AddVelocity () {: aria-label='Functions' }
  • BloodExplode () {: aria-label='Functions' }
  • CanShutDoors () {: aria-label='Functions' }
  • ClearEntityFlags () {: aria-label='Functions' }
  • CollidesWithGrid () {: aria-label='Functions' }
  • Die () {: aria-label='Functions' }
  • Exists () {: aria-label='Functions' }
  • GetBossID () {: aria-label='Functions' }
  • GetColor () {: aria-label='Functions' }
  • GetData () {: aria-label='Functions' }
  • GetDropRNG () {: aria-label='Functions' }
  • GetEntityFlags () {: aria-label='Functions' }
  • GetLastChild () {: aria-label='Functions' }
  • GetLastParent () {: aria-label='Functions' }
  • GetSprite () {: aria-label='Functions' }
  • HasCommonParentWithEntity () {: aria-label='Functions' }
  • HasEntityFlags () {: aria-label='Functions' }
  • HasFullHealth () {: aria-label='Functions' }
  • HasMortalDamage () {: aria-label='Functions' }
  • IsActiveEnemy () {: aria-label='Functions' }
  • IsBoss () {: aria-label='Functions' }
  • IsDead () {: aria-label='Functions' }
  • IsEnemy () {: aria-label='Functions' }
  • IsFlying () {: aria-label='Functions' }
  • IsFrame () {: aria-label='Functions' }
  • IsInvincible () {: aria-label='Functions' }
  • IsVisible () {: aria-label='Functions' }
  • IsVulnerableEnemy () {: aria-label='Functions' }
  • Kill () {: aria-label='Functions' }
  • MultiplyFriction () {: aria-label='Functions' }
  • PostRender () {: aria-label='Functions' }
  • Remove () {: aria-label='Functions' }
  • RemoveStatusEffects () {: aria-label='Functions' }
  • Render () {: aria-label='Functions' }
  • RenderShadowLayer () {: aria-label='Functions' }
  • SetColor () {: aria-label='Functions' }
  • SetSize () {: aria-label='Functions' }
  • SetSpriteFrame () {: aria-label='Functions' }
  • SetSpriteOverlayFrame () {: aria-label='Functions' }
  • TakeDamage () {: aria-label='Functions' }
  • ToBomb () {: aria-label='Functions' }
  • ToEffect () {: aria-label='Functions' }
  • ToFamiliar () {: aria-label='Functions' }
  • ToKnife () {: aria-label='Functions' }
  • ToLaser () {: aria-label='Functions' }
  • ToNPC () {: aria-label='Functions' }
  • ToPickup () {: aria-label='Functions' }
  • ToPlayer () {: aria-label='Functions' }
  • ToProjectile () {: aria-label='Functions' }
  • ToTear () {: aria-label='Functions' }
  • Update () {: aria-label='Functions' }
  • Child () {: aria-label='Functions' }
  • Variables
  • CollisionDamage {: aria-label='Variables' }
  • DepthOffset {: aria-label='Variables' }
  • DropSeed {: aria-label='Variables' }
  • EntityCollisionClass {: aria-label='Variables' }
  • FlipX {: aria-label='Variables' }
  • FrameCount {: aria-label='Variables' }
  • Friction {: aria-label='Variables' }
  • GridCollisionClass {: aria-label='Variables' }
  • HitPoints {: aria-label='Variables' }
  • Index {: aria-label='Variables' }
  • InitSeed {: aria-label='Variables' }
  • Mass {: aria-label='Variables' }
  • MaxHitPoints {: aria-label='Variables' }
  • Parent {: aria-label='Variables' }
  • Position {: aria-label='Variables' }
  • PositionOffset {: aria-label='Variables' }
  • RenderZOffset {: aria-label='Variables' }
  • SizeMulti {: aria-label='Variables' }
  • SpawnerEntity {: aria-label='Variables' }
  • SpawnerType {: aria-label='Variables' }
  • SpawnerVariant {: aria-label='Variables' }
  • SpawnGridIndex {: aria-label='Variables' }
  • SplatColor {: aria-label='Variables' }
  • SpriteOffset {: aria-label='Variables' }
  • SpriteRotation {: aria-label='Variables' }
  • SpriteScale {: aria-label='Variables' }
  • SubType {: aria-label='Variables' }
  • Target {: aria-label='Variables' }
  • TargetPosition {: aria-label='Variables' }
  • Type {: aria-label='Variables' }
  • Variant {: aria-label='Variables' }
  • Velocity {: aria-label='Variables' }
  • Visible {: aria-label='Variables' }
  • Size {: aria-label='Variables' }

Was this helpful?

  1. beta
  2. docs

Class "Entity"

PreviousClass "Vector"NextClass "ItemConfig::Config"

Last updated 4 years ago

Was this helpful?

Functions

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

{: .abp .tooltip .badge }

void AddBurn ( 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.

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

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

{: .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.

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

AddConfusion () {: 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.

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

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

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

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

    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' }

Adds a fear-effect to an entity.

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

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

AddFreeze () {: 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.

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

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

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

Heals an entity.

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

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

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

Adds a poison effect to the entity.

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

Adds a shrink effect to the entity.

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

Makes the friction higher.

AddVelocity () {: 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' }

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

Explodes with gibs and blood.

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

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

enemies keep the doors shut.

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

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

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

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

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

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

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

Kills the entity and trigger its death animation.

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

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

Returns true, if this entity still exists.

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

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' }

Returns the Color object assosiated to this entity.

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

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.

    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' }

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' }

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

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

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

Returns the last entity spawned by this entity.

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

Returns the last parent of this entity.

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

Return the sprite object of the entity.

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

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

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

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

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

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

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

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' }

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' }

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

bosses display health bar

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

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

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

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

return true for NPCs that are not controlled by the player

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

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

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

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

true every X frames

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

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

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

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

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

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

return true for enemies that can be damaged

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

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

Kills the entity and makes a blood splat or gibs.

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

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

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

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

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

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

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

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

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

Removes all Status Effects from the entity.

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

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

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

Render the shadow / shadow layer again.

SetColor () {: 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.

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

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

Set the size ofthe entity.

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

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

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

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

TakeDamage () {: 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' }

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

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

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

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

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

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

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

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

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

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

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

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

Variables

CollisionDamage {: aria-label='Variables' }

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

DepthOffset {: aria-label='Variables' }

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.

    entity1.Position.Y -- => 50
    entity2.Position.Y -- => 45
    -- Entity1 is rendered in front of Entity2

    entity1.DepthOffset = -10
    -- new Entity1 renderYPosition => 40
    -- Entity2 is rendered in front of Entity1

DropSeed {: aria-label='Variables' }

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

Get/set the Seed of the Drop RNG.

FlipX {: aria-label='Variables' }

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

FrameCount {: aria-label='Variables' }

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

Friction {: aria-label='Variables' }

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

loaded from entity config

HitPoints {: aria-label='Variables' }

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' }

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

InitSeed {: aria-label='Variables' }

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

Mass {: aria-label='Variables' }

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

MaxHitPoints {: aria-label='Variables' }

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

Parent {: aria-label='Variables' }

Position {: aria-label='Variables' }

PositionOffset {: aria-label='Variables' }

RenderZOffset {: aria-label='Variables' }

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

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

SizeMulti {: aria-label='Variables' }

SpawnerEntity {: aria-label='Variables' }

SpawnerType {: aria-label='Variables' }

SpawnerVariant {: aria-label='Variables' }

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

SpawnGridIndex {: aria-label='Variables' }

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

SplatColor {: aria-label='Variables' }

SpriteOffset {: aria-label='Variables' }

SpriteRotation {: aria-label='Variables' }

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

SpriteScale {: aria-label='Variables' }

SubType {: aria-label='Variables' }

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

Target {: aria-label='Variables' }

TargetPosition {: aria-label='Variables' }

Type {: aria-label='Variables' }

Variant {: aria-label='Variables' }

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

Velocity {: aria-label='Variables' }

Visible {: aria-label='Variables' }

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

Size {: aria-label='Variables' }

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

Returns the size of the hitbox on an entity.

{: .abp .tooltip .badge }

void AddConfusion ( Source, int Duration, boolean IgnoreBosses ) {: .copyable aria-label='Functions' }

{: .abp .tooltip .badge }

Add 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.

{: .abp .tooltip .badge }

void AddFear ( Source, int Duration ) {: .copyable aria-label='Functions' }

{: .abp .tooltip .badge }

void AddFreeze ( Source, int Duration ) {: .copyable aria-label='Functions' }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

void AddMidasFreeze ( Source, int Duration ) {: .copyable aria-label='Functions' }

{: .abp .tooltip .badge }

void AddPoison ( Source, int Duration, float Damage ) {: .copyable aria-label='Functions' }

{: .abp .tooltip .badge }

void AddShrink ( Source, int Duration ) {: .copyable aria-label='Functions' }

{: .abp .tooltip .badge }

void AddSlowing ( Source, int Duration, float SlowValue, SlowColor ) {: .copyable aria-label='Functions' }

{: .abp .tooltip .badge }

void AddVelocity ( Velocity ) {: .copyable aria-label='Functions' }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

Removes all from the entity.

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

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

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

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

{: .abp .tooltip .badge }

Get the 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 .

{: .abp .tooltip .badge }

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

{: .abp .tooltip .badge }

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

{: .abp .tooltip .badge }

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

{: .abp .tooltip .badge }

boolean HasCommonParentWithEntity ( Other ) {: .copyable aria-label='Functions' }

{: .abp .tooltip .badge }

Returns true, if the entity has all named set.

???- example "Example Code" This code prints something in the console, if the entity has a specific .

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

void Render ( Offset ) {: .copyable aria-label='Functions' }

{: .abp .tooltip .badge }

boolean RenderShadowLayer ( Offset ) {: .copyable aria-label='Functions' }

{: .abp .tooltip .badge }

void SetColor ( Color, int Duration, int Priority, boolean Fadeout, boolean Share ) {: .copyable aria-label='Functions' }

{: .abp .tooltip .badge }

void SetSize ( float Size, SizeMulti, int NumGridCollisionPoints ) {: .copyable aria-label='Functions' }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

boolean TakeDamage ( float Damage, int Flags, Source, int DamageCountdown ) {: .copyable aria-label='Functions' }

{: .abp .tooltip .badge }

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

{: .abp .tooltip .badge }

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

{: .abp .tooltip .badge }

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

{: .abp .tooltip .badge }

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

{: .abp .tooltip .badge }

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

{: .abp .tooltip .badge }

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

{: .abp .tooltip .badge }

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

{: .abp .tooltip .badge }

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

{: .abp .tooltip .badge }

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

{: .abp .tooltip .badge }

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

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

Child {: .copyable aria-label='Functions' }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: aria-label='Variables' }

{: .abp .tooltip .badge }

{: .copyable aria-label='Variables' }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: aria-label='Variables' }

{: .abp .tooltip .badge }

{: .copyable aria-label='Variables' }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

Parent {: .copyable aria-label='Variables' }

{: .abp .tooltip .badge }

Position {: .copyable aria-label='Variables' }

{: .abp .tooltip .badge }

PositionOffset {: .copyable aria-label='Variables' }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

SizeMulti {: .copyable aria-label='Variables' }

{: .abp .tooltip .badge }

SpawnerEntity {: .copyable aria-label='Variables' }

{: .abp .tooltip .badge }

SpawnerType {: .copyable aria-label='Variables' }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

SplatColor {: .copyable aria-label='Variables' }

{: .abp .tooltip .badge }

SpriteOffset {: .copyable aria-label='Variables' }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

SpriteScale {: .copyable aria-label='Variables' }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

Target {: .copyable aria-label='Variables' }

{: .abp .tooltip .badge }

TargetPosition {: .copyable aria-label='Variables' }

{: .abp .tooltip .badge }

Type {: .copyable aria-label='Variables' }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

Velocity {: .copyable aria-label='Variables' }

{: .abp .tooltip .badge }

{: .abp .tooltip .badge }

EntityRef
EntityRef
EntityFlags
EntityRef
EntityRef
EntityRef
EntityRef
EntityRef
EntityRef
Color
Vector
EntityFlags
Color
RNG
EntityFlags
EntityFlags
Entity
Entity
Sprite
Entity
EntityFlags
EntityFlags
Vector
Vector
Color
Vector
EntityRef
EntityBomb
EntityEffect
EntityFamiliar
EntityKnife
EntityLaser
EntityNPC
EntityPickup
EntityPlayer
EntityProjectile
EntityTear
Entity
EntityCollisionClass
EntityCollisionClass
EntityCollisionClass
GridCollisionClass
GridCollisionClass
GridCollisionClass
Entity
Vector
Vector
Vector
Entity
EntityType
Color
Vector
Vector
Entity
Vector
EntityType
Vector