Skip to content

AddSpawnPoint

Remembers a spawn point under a tag.

A plain list the prelude keeps for the mode - nothing on the server side. Points are grouped by tag ("" without one): one list per team, per arena, per role.

AddSpawnPoint(x, y, z, yaw [, tag])
Parameter Type
x number metres
y number metres
z number | nil metres; nil = -1, on the terrain
yaw number degrees (0 without)
tag string the list to add to (optional)

number - how many points the list holds now

AddSpawnPoint(1280, 1088, -1, 0, "red")
AddSpawnPoint(1284, 1088, -1, 0, "red")
AddSpawnPoint(1310, 1088, -1, 180, "blue")

GetRandomSpawnPoint · GetSpawnPoints · ClearSpawnPoints · SetSpawnInfo · the Players group of the index