Thread: Npc to Npc
View Single Post
  #20  
Old 02-03-2011, 05:16 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by adam View Post
I've encountered that problem before. Try calling a function to force an update to all players. I think I used the move function without actually moving the npc. Just a hack, but it should work. Changing visibility should force the same update.... but it doesn't.
You can just use this.trigger("RandomUnknownEventExample", ""); to force an update of an NPC and DB-NPC to save it's flags/values.

I noticed this behaivor when I called public functions which should have updated the NPCs X, Y or hid them but nothing would happen. Adding a trigger causes it to update to players.
__________________
Quote:
Reply With Quote