Skip to content

Creature proxy (self.creature)

Bound on script tables as self.creature. Only these members are available; unknown names are rejected.

Source: Utils/Lua/LuaCreatureApi.cs.

Properties

Name Type / signature Notes
CurGlobalCenter Vector2 CurGlobalCenter
Dying Boolean Dying
Health float Health
Height float Height
IsFlipped Boolean IsFlipped
IsOnGround Boolean IsOnGround
MaxHealth float MaxHealth
MeleeDamage float MeleeDamage
ViewRange float ViewRange
Width float Width
X float X
Y float Y

Methods

Signature Notes
void DealMeleeDamage(object target, float damage)
LuaEntityView FindTarget(float range)
String GetCurrentAnimationName()
void PerformAction(String actionName)
void PlayAnimation(String animationName)
void SetFacing(Boolean faceRight)
void TransitionToAnimation(String animationName, float transitionTime)

Generated 2026-08-05T00:23:19.7369123Z · 0e7e0ec7 · 19 members.