GameObject
Base entity class.
tip
__eq
has been overriden so that you can just use ==
to compare entities.
Properties
team
: Team
handle
: integer
networkId
: integer
isVisibleOnScreen
: boolean
type
: ObjectType
flags
: integer
displayName
: string
bboxMax
: Vector3
bboxMin
: Vector3
position
: Vector3
position2D
: Vector2
isVisible
: boolean
isAlive
: boolean
isMe
: boolean
hitboxRadius
: float
isStructure
: boolean
isAttacableUnit
: boolean
isAlly
: boolean
isEnemy
: boolean
isNeutral
: boolean
isMonster
: boolean
isAIBase
: boolean
isMinion
: boolean
isHero
: boolean
isTurret
: boolean
isMissile
: boolean
Functions
CastAsFinal
GameObject:CastAsFinal()
→ GameObject
Returns object casted as final type.
Level
GameObject:Level()
→ number
Returns the entity level.
GetAddress
GameObject:GetAddress()
→ number
Returns the entity's memory address.
PrintAddress
GameObject:PrintAddress()
→ void
Print the entity's memory address on console.
IsValid
GameObject:IsValid()
→ boolean
Returns if this is a valid entity.
GetUniqueName
GameObject:GetUniqueName()
→ string
Returns entity's unique name.
GetData
GameObject:GetData()
→ table<any>
Returns entity's unique data table.