All players||doc135787

September 20, 2022

Format

 Team:getEntityList() 
  • The class to which the function belongs:Team

Description

Get all members of the team


Value Returned

type Description
table member list


Code Samples

Get all entity objects of the team whose team ID is 1

local entities = Game.GetTeam(1, true):getEntityList()
for _, entity in pairs(entities) do
    print(entity.objID, entity.name)
end