Quote:
Originally Posted by cbk1994
If the trigger is clientside, it's likely using level coordinates. Not certain about that, though.
Fairly certain this won't work, but you could try finding out what 'name' on clientside equals, and if it's the same as serverside, try
PHP Code:
triggerserver("npc", name, "hi");
Otherwise, you might try settings an attr on serverside of the NPC name then doing
PHP Code:
triggerserver("npc", this.attr[3], "hi");
I'm not certain whether putnpc2's can receive triggers via triggerserver, but they are really just DB NPCs, so I don't see why they couldn't.
|
I've already said that the xy that the trigger is being sent to is based on the gmap (i.e. 70,20 not 6,20). But on top of that, it works when my character is in the same level (no matter where the NPC is) so I know that the xy is right. EDIT: Oh, I see what you were saying...I don't see why that would be the case though, seems pretty silly
I'll try getting the NPC's name and triggering it via a weapon though, and see if that works.
Another thing: would sleepwhennoplayers=true/false have anything to do with it? I tested it but had no luck either.