1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Miho931 2025-06-08 12:59:37 +02:00
parent 2c79572f71
commit 01b5635131
2 changed files with 4 additions and 0 deletions

View file

@ -54,6 +54,9 @@ CreateThread(function()
for k, v in pairs(Config.Zonen) do 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 dist = #(playerCoords - vector3(v.NPC.spawn.x, v.NPC.spawn.y, v.NPC.spawn.z))
local spawnDistance = v.NPC.distance local spawnDistance = v.NPC.distance
print("PlayerCoords: "..playerCoords)
print("dist: "..dist)
print("spawnDistance: "..spawnDistance)
if dist < spawnDistance and not isNPCSpawned then if dist < spawnDistance and not isNPCSpawned then
SpawnGuardNPC(v.NPC) SpawnGuardNPC(v.NPC)

View file

@ -1,5 +1,6 @@
Config = {} Config = {}
Config.Debug = true
Config.Zonen = { Config.Zonen = {
{ {
name = "Meetingpoint", name = "Meetingpoint",