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;