🧍Entity

get_local_player

Returns the index of local player if present

var local_idx = g_entity.get_local_player( )

get_netvar

Returns the value for the desired netvar

var origin = g_entity.get_netvar( local_idx, "DT_BaseEntity", "m_vecOrigin" )

set_netvar

Sets the netvar to a desired value

g_entity.set_netvar ( local_idx, "DT_BaseEntity", "m_vecOrigin", [ 69, 69, 69 ] )

get_desync_delta

Gets the maximum desync delta for the wanted entity

var max_delta = g_entity.get_desync_delta ( local_idx )

get_name

Gets the name for given entity index

var player_name = g_entity.get_name( local_idx )

is_valid

Check if wanted entity is valid

var valid = g_entity.is_valid( local_idx )

get_entity_from_handle

Returns the index of wanted entity from handle

var ent_idx = g_entity.get_entity_from_handle( handle )

is_dormant

Returns if entity index is dormant or not

var dormant = g_entity.is_dormant( local_idx )

get_bounds

Gets ESP boundaries for entity index

bounds = g_entity.get_bounds( idx )

x = bounds[0]
y = bounds[1]
w = bounds[2]
h = bounds[3]

get_alpha

returns ESP alpha, 0-1

alpha = g_entity.get_alpha( idx )

get_player_for_user_id

target = g_entity.get_player_for_user_id(userid)

get_item_definition_index

item_def_idx = g_entity.get_item_definition_index(idx)

get_class_id

class_id = g_entity.get_class_id(idx)

get_muzzle_position

x = g_entity.get_muzzle_position()[0] // X, Y, Z

get_abs_origin

x = g_entity.get_abs_origin(idx)[0]

Last updated