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.
Syntax
Section titled “Syntax”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) |
Returns
Section titled “Returns”number - how many points the list holds now
Example
Section titled “Example”AddSpawnPoint(1280, 1088, -1, 0, "red")AddSpawnPoint(1284, 1088, -1, 0, "red")AddSpawnPoint(1310, 1088, -1, 180, "blue")See also
Section titled “See also”GetRandomSpawnPoint · GetSpawnPoints · ClearSpawnPoints · SetSpawnInfo · the Players group of the index
