Quote:
Originally Posted by scriptless
Putnpc NPC's have names?
|
Yes. A putnpc is just a more temporary database NPC. If you know an NPC's name, you can easily trigger it:
PHP Code:
triggerServer("npc", npc.attr[2], "poke");
note that the npc's name isn't available clientside (iirc) so you'll need to stuff it in an attribute or similar so that you can access it clientside (just do
this.attr[2] = this.name serverside in
onCreated).
Now you no longer have to worry about shapes or overlapping or any of that other junk.