Quote:
|
Originally Posted by Stefan
When you modify some other npc then it will not be updated, since it is inactive. Best way is to activate it afterwards by triggering it:
PHP Code:
function onActionGrab() {
with (findNPC("localnpc_g_kuji-testlvl_35088589_0")) {
message("wtf");
trigger("update","");
}
}
Since might sound strange, but the npcserver is just not caring about inactive npcs, because the total number of npcs is often 100 times bigger than the number of active npcs, so checking all npcs for updates would slow down the server. It could be possible to let the npc activate itself though, will check sometime if that is possible.
|
Yeah, my solution was to trigger an action to itself :o