From 005e8bf148e5da9a9df80fcce5598553ca91a0fb Mon Sep 17 00:00:00 2001 From: PrisonCamp Date: Tue, 23 Dec 2014 02:02:53 -0800 Subject: [PATCH] Fixed spawner issue --- .../compiled/game/script/city/jawa_spawner.script | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sku.0/sys.server/compiled/game/script/city/jawa_spawner.script b/sku.0/sys.server/compiled/game/script/city/jawa_spawner.script index cbaacad5d..282c280a2 100644 --- a/sku.0/sys.server/compiled/game/script/city/jawa_spawner.script +++ b/sku.0/sys.server/compiled/game/script/city/jawa_spawner.script @@ -95,15 +95,17 @@ void doSpawn (obj_id self) int maxPop = getIntObjVar (self, "pop"); location me = getLocation(self); - location here = locations.getGoodLocationAroundLocation(me, 10f, 10f, 10f, 10f); + /*location here = locations.getGoodLocationAroundLocation(me, 10f, 10f, 10f, 10f); if (here == null) { debugServerConsoleMsg (self, "jawa_spawner couldn't find a good location!"); return; - } + } + + */ string spawn = npcToSpawn(); - obj_id npc = create.object (spawn, here); + obj_id npc = create.object (spawn, me); attachScript (npc, "city.jawa_wander"); setInvulnerable(npc, true); @@ -183,4 +185,4 @@ string npcToSpawn() } return spawn; -} \ No newline at end of file +}