Also to my original problem. I still need to trigger from the weapon showing the dialog to the level npc, so on a waitfor it knows when to continue. I'm still basically using the same thing, send a trigger to server in weapon, send a trigger serverside in weapon to serverside on level npc.
On the level npc now though it's just this for waiting for the trigger from the wnpc:
PHP Code:
function onPlayerTouchsMe()
{
npc_stop();
this.dir = (player.dir + 2) % 4;
waitfor(this, "onDialogDone", 3600);
npc_continue();
}
I've also tried just "DialogDone" in waitfor as well... it's not doing anything until the waitfor times out.
The weapon npc:
PHP Code:
function onActionServerside()
{
if (params[0] == "finishedDialog")
{
level.npc.(@params[1]).trigger("DialogDone");
}
}
//#CLIENTSIDE
function doesntReallyMatter()
{
triggerserver("gui", this.name, "finishedDialog", this.speaker);
}