Hooks hooksserver
Part of Spawn Points
Hooks called by Spawn Points
Summary
Hooks
Lets plugins decide where a player spawns.
Hooks
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
posvector and optionally anangangle to spawn the player there instead, or false to use the spawn of the map; return nothing to keep the picked point