Added the new core as a subtree.
This commit is contained in:
7
Core/spawn.lua
Normal file
7
Core/spawn.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
function HandleSpawnCommand(Split, Player)
|
||||
World = Player:GetWorld()
|
||||
SetBackCoordinates(Player)
|
||||
Player:TeleportToCoords(World:GetSpawnX(), World:GetSpawnY(), World:GetSpawnZ())
|
||||
LOGINFO(Player:GetName() .. " returned to spawn.")
|
||||
return true
|
||||
end
|
||||
Reference in New Issue
Block a user