Thread: script help..=X
View Single Post
  #2  
Old 03-12-2003, 05:25 AM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan will become famous soon enough
Re: script help..=X

Quote:
Originally posted by ShadowDarkstar
NPC Code:

triggeraction x,y,move,#v(mousex),#v(mousey);


NPC Code:

triggeraction x,y,move,<npcname>,#v(mousex),#v(mousey);


should work

a better more common way to do it would be to replace move with serverside, i'm not sure if the name matters for the server, but it doesn't for your npc... so it can't hurt

most people do it this way and you can do other things too if you used param 0 for the indicator like this:
NPC Code:

if (actionserverside) {
if (streqauls(#p(0),move) {
x=#p(1);
y=#p(2);
}
if (strequals(#p(0),shoot or something) {
do shooty things or whatever;
}
}



the trigger would look like:
NPC Code:
triggeraction 0,0,serverside,dbnpcname,move/shoot/etc,p1,p2,p3;

__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

Reply With Quote