Hooks called by Spawn Points

Summary

Hooks

Lets plugins decide where a player spawns.

Hooks

GetPlayerSpawnPoint(actor, point, points)

server plugins/spawnpoints/plugin/sv_plugin.lua:234

Lets plugins decide where a player spawns. Called on the server every time a player spawns, after the Spawn Points plugin has made its own choice and before the game places the player. With the Characters plugin loaded it is only called for players who have an active character that is not banned; it is never called for level transitions.

Parameters

  • actor Player the player who is spawning
  • point Map the spawn point that has been picked, with its pos, ang and group; nil when the player's groups have no points
  • points List<Map> all the points of the group the point was picked from; empty when the player's groups have no points

Returns

  • Map/Boolean A table with a pos vector and optionally an ang angle to spawn the player there instead, or false to use the spawn of the map; return nothing to keep the picked point

Called from

Call sites

Defined in