kts.GetAllPlayers

Name

kts.GetAllPlayers – get the list of players in the game

Synopsis

result = kts.GetAllPlayers()

Description

Returns a list of players in the game.

The list includes all players, even those who were eliminated (by kts.EliminatePlayer, or by being permanently killed in a "wand of securing" quest).

Return Value

The return value is a Lua table/array, in which each element is a Player userdata object. (These objects can be used with functions like kts.IsEliminated or kts.GetPlayerName, among others.)

Errors

None.

See Also

kts.EliminatePlayer

kts.IsEliminated

kts.GetHomeFor

kts.GetPlayerName

kts.SetHomeFor

kts.WinGame