mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
Fixed spawner issue
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user