Skip to content

GetSpawnPoints

The spawn points of a tag.

GetSpawnPoints([tag])
Parameter Type
tag string the list ("" without) (optional)

table - a list of {x=, y=, z=, yaw=}; {} when empty

for i, p in ipairs(GetSpawnPoints("red")) do
Log(string.format("red %d: %.1f %.1f", i, p.x, p.y))
end

AddSpawnPoint · GetRandomSpawnPoint · the Players group of the index