View Single Post
  #12  
Old 06-16-2009, 01:31 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
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.plallplayers)
  {

    
pl.triggerClient"gui"name"Hello World");

  }
}

//#CLIENTSIDE

function onActionClientside()
{

  
player.chat params0];


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()
{

  
triggerActionthis.xthis.y"Clientside""Hello World");

}

//#CLIENTSIDE

function onCreated()
{

  
setShape016 216 3);

}

function 
onActionClientside()
{

  
player.chat params0];


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()
__________________
Deep into the Darkness peering...

Last edited by Angel_Light; 06-16-2009 at 01:42 AM..
Reply With Quote