View Single Post
  #1  
Old 12-07-2003, 02:15 AM
Luigi1 Luigi1 is offline
The OtherOther Shaded Leg
Join Date: Jul 2003
Location: In front of a monitor
Posts: 333
Luigi1 is on a distinguished road
Triggeraction from serverside to clientside?

Note: I mean in a local DB NPC, not a weapon.

I want to do something like this: (Well, what I need this for isn't for this script, but still... this is an example of the scenario)

NPC Code:
if (created || playerenters) {
setshape 1,32,32;
setstring this.test,hahaha.;
triggeraction x+.5,y+.5,test,#v(id),#s(this.test);
}

//#CLIENTSIDE
if (created) {
setshape2 2,2,{22,22,
22,22};
}

if (actiontest) {
if (strtofloat(#p(0)) == id) // So that it is received only by this NPC.
message received - #p(1);
}



... But that doesn't seem to work.

Is there a way to make this work? I can't use save[#0-299], because I believe you can only transfer variables with those, unless I'm mistaken.
__________________
Quote:
Originally Posted by mystic2k
that post did really makes me think how much braincells you have.
*waits for nifty Graal admin person to tell me what happened to vip.graal.net*
Reply With Quote