It does, but not in the way I think you want it too.
NPC Code:
triggerClient( "gui", name, params...);
PHP Code:
function onCreated()
{
for ( temp.pl: allplayers)
{
pl.triggerClient( "gui", name, "Hello World");
}
}
//#CLIENTSIDE
function onActionClientside()
{
player.chat = params[ 0];
}
I know you can replace "gui" with "weapon" but it still does the same. Can someone enlighten us if there is any difference.
For level NPC's you just have to define the shape, such as
NPC Code:
setshape( 0, 16 * 2, 16 * 3);
0 being non-blocking.
Then you can do the triggerAction();
example
PHP Code:
function onCreated()
{
triggerAction( this.x, this.y, "Clientside", "Hello World");
}
//#CLIENTSIDE
function onCreated()
{
setShape( 0, 16 * 2, 16 * 3);
}
function onActionClientside()
{
player.chat = params[ 0];
}
Also, you dont have to use "Clientside" since it's a triggerAction(); So replace that with something like "Data" then the function would be onActionData()