sm.unit.getAllUnits

Returns a table with all the units in the world.

Kind: Function

Environments: Game

Game

sm.unit.getAllUnits( world )

Open the full Game reference

Availability: Server only

Parameters:

Name Type Description
world (optional) World The world to get units from. Defaults to the world of the script (Optional)

Returns:

Type Description
table The table of all units. {Unit, ..}