Class "EntityPlayer"

Functions

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

{: .abp .tooltip .badge }

void AddBlackHearts ( int BlackHearts ) {: .copyable aria-label='Functions' }

Adds Black hearts to the player. 1 unit is half a heart. Remove them with negative numbers.

???- example "Example Code" This code adds 1 full black heart to the player.

    Isaac.GetPlayer(0):AddBlackHearts(2)

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

{: .abp .tooltip .badge }

Entity AddBlueFlies ( int Amount, Vector Position, Entity Target ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

Entity AddBlueSpider ( Vector Position ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

void AddBombs ( int Amount ) {: .copyable aria-label='Functions' }

Adds bombs to the player. Remove them with negative numbers.

???- example "Example Code" This code removes 1 bomb from the player.

    Isaac.GetPlayer(0):AddBombs(-1)

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

{: .abp .tooltip .badge }

void AddBoneHearts ( int Hearts ) {: .copyable aria-label='Functions' }

Adds bone hearts to the player. 1 unit is a single bone heart. Remove them with negative numbers.

???- example "Example Code" This code adds 1 bone heart to the player.

    Isaac.GetPlayer(0):AddBoneHearts(1)

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

{: .abp .tooltip .badge }

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

Will reevaluate the cache flags provided in the next cache reevaluation.

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

void AddCoins ( int Amount ) {: .copyable aria-label='Functions' }

Adds coins to the player. Remove them with negative numbers.

???- example "Example Code" This code adds 1 coin to the player.

    Isaac.GetPlayer(0):AddCoins(1)

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

{: .abp .tooltip .badge }

void AddCollectible ( CollectibleType Type, int Charge, boolean AddConsumables ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

void AddControlsCooldown ( int Cooldown ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

void AddCostume ( Config::Item Item, boolean ItemStateOnly ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

void AddEternalHearts ( int EternalHearts ) {: .copyable aria-label='Functions' }

Adds eternal hearts to the player. 1 unit is half a heart. Remove them with negative numbers.

(Note that eternal hearts automatically turn to full hearts, when you have more than one.)

???- example "Example Code" This code adds 1 eternal heart to the player.

    Isaac.GetPlayer(0):AddEternalHearts(1)

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

void AddGoldenHearts ( int Hearts ) {: .copyable aria-label='Functions' }

Adds golden hearts to the player. 1 unit is a single gold heart. Remove them with negative numbers.

???- example "Example Code" This code adds 1 golden heart to the player.

    Isaac.GetPlayer(0):AddGoldenHearts(1)

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

void AddHearts ( int Hearts ) {: .copyable aria-label='Functions' }

Adds red hearts to the player if there are any empty heart containers. 1 unit is half a heart. Remove health with negative numbers.

???- example "Example Code" This code adds 1 full red heart to the player.

    Isaac.GetPlayer(0):AddHearts(2)

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

{: .abp .tooltip .badge }

void AddJarFlies ( int Flies ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

void AddJarHearts ( int Hearts ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

void AddKeys ( int Amount ) {: .copyable aria-label='Functions' }

Adds keys to the player. Remove them with negative numbers.

???- example "Example Code" This code adds 1 key to the player.

    Isaac.GetPlayer(0):AddKeys(1)

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

{: .abp .tooltip .badge }

void AddMaxHearts ( int MaxHearts, boolean IgnoreKeeper ) {: .copyable aria-label='Functions' }

Adds heart containers to the player. 2 units is a full heart container. Remove them with negative numbers.

???- note "Notes" It is possible to add a half heart container to the player. This will appear as a regular heart container but can only be filled half-way.

???- example "Example Code" This code adds 1 heart container to the player.

    Isaac.GetPlayer(0):AddMaxHearts(2,true)

???+ bug "Bugs" IgnoreKeeper does not appear to work as intended.

Max hearts can be added or removed from Keeper regardless of what this boolean is.
If Keeper has Greed's Gullet and this boolean is set to false, max hearts cannot be added to Keeper, but can be removed normally.
If Keeper has Greed's Gullet and this boolean is set to true, Max hearts can be added or removed from Keeper normally.

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

{: .abp .tooltip .badge }

void AddNullCostume ( Config::NullItemID NullId ) {: .copyable aria-label='Functions' }

for Lua

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

{: .abp .tooltip .badge }

void AddPill ( PillColor Pill ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

void AddPlayerFormCostume ( PlayerForm Form ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

void AddSoulHearts ( int SoulHearts ) {: .copyable aria-label='Functions' }

Adds soul hearts to the player. 1 unit is half a heart. Remove them with negative numbers.

???- example "Example Code" This code adds 1 full soul heart to the player.

    Isaac.GetPlayer(0):AddSoulHearts(2)

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

{: .abp .tooltip .badge }

void AddTrinket ( TrinketType Type ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

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

Play the animation that is normally played at the beginning of a stage.

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

{: .abp .tooltip .badge }

void AnimateCard ( Card Card, string AnimName ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

void AnimateCollectible ( CollectibleType Collectible, string AnimName, string SpriteAnimName ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

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

thumbs up

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

{: .abp .tooltip .badge }

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

end of a stage

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

{: .abp .tooltip .badge }

void AnimatePill ( PillColor Pill, string AnimName ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

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

Fall into pitfall.

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

{: .abp .tooltip .badge }

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

Jump out of pitfall.

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

{: .abp .tooltip .badge }

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

oh no!

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

{: .abp .tooltip .badge }

void AnimateTeleport ( boolean Up ) {: .copyable aria-label='Functions' }

teleport to another room

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

{: .abp .tooltip .badge }

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

end of a stage

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

{: .abp .tooltip .badge }

void AnimateTrinket ( TrinketType Trinket, string AnimName, string SpriteAnimName ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

Returns the non-zero joystick direction from the most recent movement input, but goes to zero after the player comes to a stop.

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

returns true if player has room for more black hearts

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

{: .abp .tooltip .badge }

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

returns true if player has room for more bone hearts

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

{: .abp .tooltip .badge }

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

returns true if player has room for more golden hearts

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

returns true if player has room for more soul hearts

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

{: .abp .tooltip .badge }

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

Can Player pick up an item right now?

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

returns true if head should react to keys or false otherwise

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

{: .abp .tooltip .badge }

void CheckFamiliar ( int FamiliarVariant, int TargetCount, RNG rng ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

Will be called when player exits the room.

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

{: .abp .tooltip .badge }

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

Sets the charge of your active item to 0 without triggering the active item effect.

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

{: .abp .tooltip .badge }

void DonateLuck ( int Luck ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

void DoZitEffect ( Vector Direction ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

void DropPoketItem ( int PocketNum, Vector Pos ) {: .copyable aria-label='Functions' }

Drops a held pocketitem (Card, Pill, Rune...) from the given itemslot at the given position. Possible pocketnumbers are [0, 1]

???+ bug "Bugs" This function is spelled wrong. Removing the pocketitem in slot 0, while having a second item in slot 1 will not update the UI correctly. The second item will still be in the second slot, which will in turn prevent the player from using this card right away. The player needs to switch between cards to fix this.

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

{: .abp .tooltip .badge }

void DropTrinket ( Vector DropPos, boolean ReplaceTick ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

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

Triggers a cache reevaluation. Will trigger the MC_EVALUATE_CACHE callback.

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

{: .abp .tooltip .badge }

EntityBomb FireBomb ( Vector Position, Vector Velocity ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

EntityLaser FireBrimstone ( Vector Direction ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

EntityLaser FireDelayedBrimstone ( float Angle, Entity Parent ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

EntityKnife FireKnife ( Entity Parent, float RotationOffset, boolean CantOverwrite, int SubType ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

EntityTear FireTear ( Vector Position, Vector Velocity, boolean CanBeEye, boolean NoTractorBeam, boolean CanTriggerStreakEnd ) {: .copyable aria-label='Functions' }

This replaces the protected fire_tear() to allow other entities (Such as bombs) to easily shoot tears in the same manner and with all the effects the player does. (Ex. Sad Bombs)

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

{: .abp .tooltip .badge }

EntityLaser FireTechLaser ( Vector Position, LaserOffset OffsetID, Vector Direction, boolean LeftEye, boolean OneHit ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

EntityLaser FireTechXLaser ( Vector Position, Vector Direction, float Radius ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

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

called after animation is finished, or on special occasions to prevent bugs

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

{: .abp .tooltip .badge }

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

Fully charges the active item. Returns true if the item was fully charged, false otherwise. If player has battery it will first try to fill first charge slot, then the battery slot.

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

{: .abp .tooltip .badge }

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

Get the current charge of your active item.

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

{: .abp .tooltip .badge }

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

Returns the currently held item.

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

{: .abp .tooltip .badge }

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

Get the current items subcharge. (Useful for items that charge up over time.)

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

Get the current charge progress of the second charge of your current active item. This bar is only active, when you have the Collectible "The Battery"

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

{: .abp .tooltip .badge }

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

This does not return the # of black hearts, this returns the bit mask for which soul hearts are black hearts.

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

EntityBomb::BombVariant GetBombVariant ( int TearFlags, boolean ForceSmallBomb ) {: .copyable aria-label='Functions' }

Pass tear flags to add extra effects to the bomb visual like burn -> hot bombs, even if player doesn't have Hot Bombs collectible. ForceSmallBomb will override large bomb variants for TEAR_PERSISTENT.

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

{: .abp .tooltip .badge }

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

Returns the number of bone hearts as an integer value. 1 Boneheart = 1.

???- example "Example Code" This code gets the total amount of red heart containers including bone hearts. The bonehearts need to be mulltiplied by 2, since in GetMaxHearts() 2 equals 1 full heart.

    local player = Isaac.GetPlayer(0)
    player:GetMaxHearts()+player:GetBoneHearts()*2

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

{: .abp .tooltip .badge }

Card GetCard ( int SlotId ) {: .copyable aria-label='Functions' }

Gets the ID of the card the player is holding in the given itemslot (0 or 1).

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

{: .abp .tooltip .badge }

RNG GetCardRNG ( Card ID ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

int GetCollectibleNum ( CollectibleType Type ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

RNG GetCollectibleRNG ( CollectibleType ID ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

Vector GetCostumeNullPos ( string NullFrameName, boolean HeadScale, Vector Direction {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

Returns the amount of Red Hearts the player can contain in their Heart Containers and Bone Hearts. 1 unit is half a red heart. Example: you have 3 red heart container and one bone heart. 6(red) + 2(bone) = 8

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

Returns the amount of eternal hearts the player has.

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

Returns the amount of golden hearts the player has.

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

Returns the amount of red hearts the player has inside their heart containers and bone hearts. 1 unit is half a heart.

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

Vector GetLaserOffset ( LaserOffset ID, Vector Direction {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

Returns the amount of Heart Containers the player has. 1 unit is half a heart container.

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

{: .abp .tooltip .badge }

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

Get the number of Pickup items you can carry. (1 on default. 2 with belly button or similar)

???+ bug "Bugs" This function is spelled wrong.

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

{: .abp .tooltip .badge }

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

Get the number of trinkets you can carry. (1 on default. 2 with moms purse or similar)

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

PosVel GetMultiShotPositionVelocity ( int LoopIndex, WeaponType Weapon, Vector ShotDirection, float ShotSpeed, MultiShotParams params ) {: .copyable aria-label='Functions' }

Call this function in a loop with values from 0 to MultiShotParams.NumProjectiles-1 (inclusive)

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

{: .abp .tooltip .badge }

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

Returns the name of the player. (Isaac, Cain, Azazel,...)

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

{: .abp .tooltip .badge }

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

normally returns the player itself. Can redirect enemy attacks to a different entity such as Best Friend

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

PillColor GetPill ( int SlotId ) {: .copyable aria-label='Functions' }

Gets the ID of the pill the player is holding in the given itemslot (0 or 1).

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

{: .abp .tooltip .badge }

RNG GetPillRNG ( PillEffect ID ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

PlayerPocketItem GetPocketItem ( int SlotId ) {: .copyable aria-label='Functions' }

Get the userdata of the pocketitem (Card,Pill,rune) in a said slot.

???+ bug "Bugs" This function returns userdata, which cant be processed. It is therefore broken and should not be used!

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

{: .abp .tooltip .badge }

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

Returns the joystick direction that drives player movement, taking into account certain modifiers like disabled controls and seed effects.

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

Returns the amount of Soul Hearts the player has. 1 unit is half a heart.

???- note "Notes" Black Hearts count toward this total, as the game sees them as soul hearts.

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

TearParams GetTearHitParams ( WeaponType WeaponType, float DamageScale, int TearDisplacement ) {: .copyable aria-label='Functions' }

Used for tear parameters that are calculated on hit (ex: Tough love, Common cold), DamageScale is used for scale calculation based on damage

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

{: .abp .tooltip .badge }

Vector GetTearMovementInheritance ( Vector ShotDirection ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

TrinketType GetTrinket ( int TrinketIndex ) {: .copyable aria-label='Functions' }

Gets the ID of the trinket the player is holding in the given trinketslot (0 or 1).

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

RNG GetTrinketRNG ( TrinketType ID ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

boolean HasCollectible ( CollectibleType Type ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

returns true when player is in an invincibility state

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

{: .abp .tooltip .badge }

boolean HasPlayerForm ( PlayerForm Form ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

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

Kept for avoiding modding issues.

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

{: .abp .tooltip .badge }

boolean HasTrinket ( TrinketType Type ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

boolean IsBlackHeart ( int Heart ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

boolean IsBoneHeart ( int heart ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

Is Player holding up an item (card/collectible/etc)

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

boolean IsPosInSpotLight ( Vector Position ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

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

This is for players that require multiple player entities, such as the Forgotten (this has nothing to do with co-players!)

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

void PlayExtraAnimation ( string Animation ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

void QueueExtraAnimation ( string Animation ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

void QueueItem ( Config::Item Item, int Charge, boolean Touched ) {: .copyable aria-label='Functions' }

Add Collectible/Trinket after animation is finished.

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

{: .abp .tooltip .badge }

void RemoveBlackHeart ( int BlackHeart ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

void RemoveCollectible ( CollectibleType Type ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

void RemoveCostume ( Config::Item Item ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

void RenderBody ( Vector position ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

void RenderGlow ( Vector position ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

void RenderHead ( Vector position ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

void RenderTop ( Vector position ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

void ReplaceCostumeSprite ( Config::Item Item, string SpritePath, int SpriteId ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

Room transitions call this to prevent lock ups.

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

revive player

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

{: .abp .tooltip .badge }

void SetActiveCharge ( int Charge ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

void SetCard ( int SlotId, Card Card {: .copyable aria-label='Functions' }

Change the card/rune the player is holding in the given itemslot (0 or 1).

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

void SetMinDamageCooldown ( int DamageCooldown ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

void SetPill ( int SlotId, PillColor Pill ) {: .copyable aria-label='Functions' }

Change the pill the player is holding in the given itemslot (0 or 1).

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

{: .abp .tooltip .badge }

void SetShootingCooldown ( int Cooldown ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

void SetTargetTrapDoor ( GridEntity TrapDoor ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

void ShootRedCandle ( Vector Direction ) {: .copyable aria-label='Functions' }

for ghost pepper item + poop and farts

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

{: .abp .tooltip .badge }

EntityLaser SpawnMawOfVoid ( int Timeout ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

Entity ThrowBlueSpider ( Vector Position, Vector Target ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

boolean TryHoldTrinket ( TrinketType Type ) {: .copyable aria-label='Functions' }

Returns true if an active item pickup cooldown is over. returns true if trinket can be added, else false

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

{: .abp .tooltip .badge }

void TryRemoveCollectibleCostume ( CollectibleType Collectible, boolean KeepPersistent ) {: .copyable aria-label='Functions' }

tries to remove a costume based on some filters

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

{: .abp .tooltip .badge }

void TryRemoveNullCostume ( Config::NullItemID NullId ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

boolean TryRemoveTrinket ( TrinketType Type ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

void TryRemoveTrinketCostume ( TrinketType Trinket ) {: .copyable aria-label='Functions' }

tries to remove a costume based on some filters

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

void UseActiveItem ( CollectibleType Item, boolean ShowAnim, boolean KeepActiveItem, boolean AllowNonMainPlayer, boolean ToAddCostume ) {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

void UsePill ( PillEffect PillEffect, PillColor PillColor {: .copyable aria-label='Functions' }

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

{: .abp .tooltip .badge }

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

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

{: .abp .tooltip .badge }

BabySubType BabySkin {: .copyable aria-label='Functions' }

P2 Skin section Used to hold the selected skin (in case of glitched baby it will pick a random one)

Variables

CanFly {: aria-label='Variables' }

{: .abp .tooltip .badge }

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

Player stat - Only change this in a callback to MC_EVALUATE_CACHE. Can the player fly over rocks and pits?

ControllerIndex {: aria-label='Variables' }

{: .abp .tooltip .badge }

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

s32 GetItemStateCooldown( void ) const { return m_ItemStateCooldown; }

ControlsCooldown {: aria-label='Variables' }

{: .abp .tooltip .badge }

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

ControlsEnabled {: aria-label='Variables' }

{: .abp .tooltip .badge }

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

Damage {: aria-label='Variables' }

{: .abp .tooltip .badge }

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

Player stat - Only change this in a callback to MC_EVALUATE_CACHE. This is equal to the Damage Stat. How much damage do the players tears or other main weapons do?

FireDelay {: aria-label='Variables' }

{: .abp .tooltip .badge }

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

How long until the player can spawn their next tear?

FriendBallEnemy {: aria-label='Variables' }

{: .abp .tooltip .badge }

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

HeadFrameDelay {: aria-label='Variables' }

{: .abp .tooltip .badge }

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

ItemHoldCooldown {: aria-label='Variables' }

{: .abp .tooltip .badge }

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

Used for avoiding player get stucked between rocks when switching a flying item with other active item.

LaserColor {: aria-label='Variables' }

{: .abp .tooltip .badge }

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

Luck {: aria-label='Variables' }

{: .abp .tooltip .badge }

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

Player stat - Only change this in a callback to MC_EVALUATE_CACHE. This is equal to the Luck Stat. Better luck generally means better random events.

MaxFireDelay {: aria-label='Variables' }

{: .abp .tooltip .badge }

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

Player stat - Only change this in a callback to MC_EVALUATE_CACHE. This is equal to the Tears Stat. How long between each tear can spawn?

MoveSpeed {: aria-label='Variables' }

{: .abp .tooltip .badge }

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

Player stat - Only change this in a callback to MC_EVALUATE_CACHE. This is equal to the Speed Stat. How fast can the player move?

QueuedItem {: aria-label='Variables' }

{: .abp .tooltip .badge }

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

item queue for when the player is picking up an item. the item is in effect as soon as the animation is finished and will be removed from the queue.

SecondaryActiveItem {: aria-label='Variables' }

{: .abp .tooltip .badge }

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

ShotSpeed {: aria-label='Variables' }

{: .abp .tooltip .badge }

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

Player stat - Only change this in a callback to MC_EVALUATE_CACHE. This is equal to the ShotSpeed Stat. How fast does the tear travel when spawned?

SpriteScale {: aria-label='Variables' }

{: .abp .tooltip .badge }

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

TearColor {: aria-label='Variables' }

{: .abp .tooltip .badge }

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

TearFallingAcceleration {: aria-label='Variables' }

{: .abp .tooltip .badge }

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

TearFallingSpeed {: aria-label='Variables' }

{: .abp .tooltip .badge }

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

Player stat - Only change this in a callback to MC_EVALUATE_CACHE. How fast is the tear moving up or down when it spawns? Affects range.

TearFlags {: aria-label='Variables' }

{: .abp .tooltip .badge }

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

Player stat - Only change this in a callback to MC_EVALUATE_CACHE. Various TearFlags.

???- example "Example Code" This code makes Isaac's tears spectral.

    local mod:OnEvaluateTearFlags(player, flag)
    player.TearFlags = player.TearFlags | TearFlags.TEAR_SPECTRAL
    end

    mod:AddCallback(ModCallbacks.MC_EVALUATE_CACHE, mod.OnEvaluateTearFlags, CacheFlag.CACHE_TEARFLAG)

TearHeight {: aria-label='Variables' }

{: .abp .tooltip .badge }

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

Player stat - Only change this in a callback to MC_EVALUATE_CACHE. This is equal to the Range Stat * -1. How high above the ground is the tear when it spawns?

???- example "Example Code" This code gives Isaac a +5 range up.

    local mod:OnEvaluateRange(player, flag)
    -- we give -5 because the TearHeight stat is always negative; the lower the number - the further the tear travels
    player.TearHeight = player.TearHeight - 5
    end

    mod:AddCallback(ModCallbacks.MC_EVALUATE_CACHE, mod.OnEvaluateRange, CacheFlag.CACHE_RANGE)

TearsOffset {: aria-label='Variables' }

{: .abp .tooltip .badge }

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

Last updated