Skip to content

entitylist

get_local_player_controller

entitylist.get_local_player_controller(): base_entity_t


get_local_player_pawn

entitylist.get_local_player_pawn(): base_entity_t


get_entity_from_handle

entitylist.get_entity_from_handle(handle: number): base_entity_t

Name Type Description
handle number Handle of the entity

get_entities

entitylist.get_entities(class_name?: string): base_entity_t[]

Name Type Description
class_name string Optional. Name of the class.

entitylist.get_entities(class_name?: string, callback: function)

Name Type Description
class_name string Optional. Name of the class.
callback function Callback function, that receives base_entity_t as an argument
1
2
3
entitylist.get_entities("C_CSPlayerPawn", function(entity)
    -- loop through all players
end)