entity_list_t

This type represents an entity list.

for_each

Loops the entities.

Arguments

Name

Type

Description

fn

function(entity_entry_t)

Function callback.

Returns

Nothing.

Example

entities.players:for_each(function (entry)
    -- ...
end);

for_each_z

Loops the entities in the reverse order.

Arguments

Name

Type

Description

fn

function(entity_entry_t)

Function callback.

Returns

Nothing.

Example

entities.players:for_each_z(function (entry)
    -- ...
end);

Last updated