not sure if this would help, but you can set in the npc handler a closeinterfaceevent like :
player.getDialogue().startDialogue("Max");
player.setCloseInterfacesEvent(() -> {
npc.faceObject() or whatever the function is in your server.
});
|
So i have a problem with Max here I have changed his Render Animation to be mining, and have him stop his Animation when talked to and he Restarts the Mining animation when the area is reloaded. My problem is he does not turn back to face the rock after talking to him so when you come back hes mining nothing. Is there a way to get him to turn back and reface the rock? I have the methods npc.faceEntity() and npc.faceObject() but i have no clue how to use these as faceEntity only lets me put npc in the parenthesis and faceObject only allows me to have null in the parenthesis. He faces the right way on server restart though as in NPCSpawning.java he is set to face North.
Also this RSPS isnt loaded with the newer Max NPC in 830+
Media:
not sure if this would help, but you can set in the npc handler a closeinterfaceevent like :
player.getDialogue().startDialogue("Max");
player.setCloseInterfacesEvent(() -> {
npc.faceObject() or whatever the function is in your server.
});
There's a function you can apply to npcHandler that notes their direction when spawned and when you close/break interfaces with said npc, npc will return to original direction it was facing when it was spawned.
Try the above suggestion, if that doesn't work I can fix it super fast for you, just lemme know.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |