NPCs now face player when starting conversations.

This commit is contained in:
Treeku
2014-05-06 03:11:42 +01:00
parent 8b2aa2a46e
commit 6ac946eae7
2 changed files with 27 additions and 0 deletions
+2
View File
@@ -57,6 +57,8 @@ public class ConversationService implements INetworkDispatch {
if(player.getConversingNpc() != null && player.getConversingNpc() != npc)
handleEndConversation(player, player.getConversingNpc());
core.simulationService.faceTarget(npc, player);
player.setConversingNpc(npc);
sendStartConversation(player, npc);
core.scriptService.callScript("scripts/conversation/", (String) npc.getAttachment("conversationFile"), "startConversation", core, player, npc);