Skip to main content

entity.get_players

Returns an array of player entity indices. Dormant and dead players will not be added to the list.

entity.get_players(enemies_only: boolean): table

Arguments

NameDescriptionType
enemies_onlyIf true then the local player and teammates will not be added to the list.boolean

Returns table