View Single Post
  #1  
Old 03-20-2006, 02:44 AM
Bl0nkt Bl0nkt is offline
Era Developer
Bl0nkt's Avatar
Join Date: Mar 2005
Location: Pennsylvania
Posts: 1,589
Bl0nkt will become famous soon enough
Send a message via AIM to Bl0nkt
Sending Information Serverside -> Clientside

Well, I can't figure out a way to do this. I've tried:

triggeractions
functions
assigning things to vars/strings/arrays

Here's an example of a script that won't work:

NPC Code:
function onCreated()
{
setshape(1, 32, 32);
}

function onPlayerchats()
{
if (player.chat == "test")
{
triggeraction(x+.1, y+.1, "test", "clientside");
}
}

//#CLIENTSIDE
function onCreated()
{
setshape(1, 32, 32);
}

function onactiontest()
{
if (params[0] == "clientside")
{
message("recieved");
}
}



If you know how, let me know. Thank you.
Reply With Quote