entity

Entity Object Library, loaded by requiring "gamesense/entity"

Functions

entity

entity(index: number): cdata (entity object pointer)

Argument

Type

Description

index

number

Entity index

Returns the entity object from the specified index, or nil on failure

entity.new

entity.new(index: number): cdata (entity object pointer)

Argument

Type

Description

index

number

Entity index

Returns the entity object from the specified index, or nil on failure

:get_entindex

entity_object:get_entindex(): number (index)

Returns the entity index of the entity object

:get_anim_state

entity_object:get_anim_state(): cdata (animation state)

Returns the animation state of the entity object

:get_anim_overlay

entity_object:get_anim_overlay(layer): cdata (animation layer)

Argument

Type

Description

layer

number

Index of an animation layer

Returns the animation layer of the entity object

:get_sequence_activity

entity_object:get_sequence_activity(sequence): number (sequence activity)

Argument

Type

Description

sequence

number

Sequence of an animation layer

Returns the sequence activity from the specified animation layer's sequence

:get_client_unknown

entity_object:get_client_unknown(): cdata (IClientUnknown)

Returns the pointer to IClientUnknown of the entity object

:get_client_networkable

entity_object:get_client_unknown(): cdata (IClientNetworkable)

Returns the pointer to IClientNetworkable of the entity object

Last updated