
02-15-2004, 04:37 PM
|
|
Scripter
|
 |
Join Date: May 2003
Location: NYC
Posts: 553
|
|
Quote:
Originally posted by Termina_Owner
NPC Code:
if (created){
setshape 1,32,32; // This is Vital
}
if (actionmove){
x = strtofloat(#p(0));
y = strtofloat(#p(1));
}
//#CLIENTSIDE
if (playerenters){
triggeraction x+0.5,y+0.5,move,#v(playerx),#v(playery);
}
Like that?
-- Avoid Repost:
NPC Code:
if (created){
setshape 1,32,32; // This is Vital
}
if (playerchats){
triggeraction x+0.5,y+0.5,clientside,move,5,5;
}
//#CLIENTSIDE
if (actionclientside){
x = strtofloat(#p(0));
y = strtofloat(#p(1));
}
Or that?
|
Why do you have 'move' after clientside? It's not a weapon npc, and you didn't use it as a param... |
__________________
|
|
|
|