forked from Simnation/Main
[Garage]
This commit is contained in:
parent
2c79572f71
commit
01b5635131
2 changed files with 4 additions and 0 deletions
|
@ -54,6 +54,9 @@ CreateThread(function()
|
|||
for k, v in pairs(Config.Zonen) do
|
||||
local dist = #(playerCoords - vector3(v.NPC.spawn.x, v.NPC.spawn.y, v.NPC.spawn.z))
|
||||
local spawnDistance = v.NPC.distance
|
||||
print("PlayerCoords: "..playerCoords)
|
||||
print("dist: "..dist)
|
||||
print("spawnDistance: "..spawnDistance)
|
||||
|
||||
if dist < spawnDistance and not isNPCSpawned then
|
||||
SpawnGuardNPC(v.NPC)
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
Config = {}
|
||||
|
||||
Config.Debug = true
|
||||
Config.Zonen = {
|
||||
{
|
||||
name = "Meetingpoint",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue