Storyteller Vendors are no longer so aloof; they will now turn to face you when addressed.

Changed the process of the spawning for the storyteller vendor so it can face the player.
This commit is contained in:
PrisonCamp
2014-10-13 20:08:04 -07:00
parent ffeb53c656
commit 3d6edd665a
@@ -33,7 +33,11 @@ void spawnStorytellerVendor(obj_id self)
{
obj_id entrance = getCellId (self, "entrance");
location storytellerVendorLoc = new location (6.6f, 0.6f, -3.5f, "tatooine", entrance);
obj_id storytellerVendor = create.staticObject ("storyteller_vendor", storytellerVendorLoc);
obj_id storytellerVendor = create.object ("storyteller_vendor", storytellerVendorLoc);
create.addDestroyMessage (storytellerVendor, "storytellerVendorDied", 10f, self);
string name = getName (storytellerVendor);
setCreatureStatic (storytellerVendor, true);
setInvulnerable(storytellerVendor, true);
setYaw(storytellerVendor, -179);
return;
}
@@ -215,4 +219,10 @@ messageHandler choreographerDied()
{
spawnChoreographer(self);
return SCRIPT_CONTINUE;
}
messageHandler storytellerVendorDied()
{
spawnStorytellerVendor(self);
return SCRIPT_CONTINUE;
}