mirror of
https://github.com/a-bad-dev/simple-shooter-game.git
synced 2026-06-09 20:36:15 +00:00
Teleport the player to the map spawn on start
This commit is contained in:
parent
68f9b82b96
commit
dd5657c9ea
1 changed files with 1 additions and 1 deletions
|
|
@ -183,7 +183,7 @@ core.register_chatcommand("start", {
|
|||
|
||||
player:set_nametag_attributes({color = {a = 0}})
|
||||
player:set_hp(20)
|
||||
|
||||
player:set_pos({x=map_data.spawn_x, y=map_data.spawn_y, z=map_data.spawn_z})
|
||||
player:set_properties({
|
||||
pointable = true, -- allow players to be killable after the match starts
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue