Quote:
Originally Posted by Switch
I'm talking about getting from clientside to serverside IN A LEVEL NPC.
|
Quote:
|
Originally Posted by Switch
"triggernpc(x,y,params,..)" which x,y triggers an NPC IN THAT LEVEL with those coords.
|
You can use triggeraction to do just that ... (just make sure you set the NPCs shape).
Just an example:
PHP Code:
function onCreated() {
setshape(1, 32, 32);
}
function onActionMessage(msg) {
this.chat = temp.msg;
}
//#CLIENTSIDE
function onPlayerChats() {
triggeraction(this.x, this.y, "message", player.chat);
}