
12-04-2002, 11:49 PM
|
|
Somewhat rusty
|
 |
Join Date: Mar 2001
Posts: 5,059
|
|
Quote:
Originally posted by Com013
NPC Code:
if (actionserverside) {
hatnum = strtofloat(#p(0));
putnpc2 playerx,playery+2,{join hats;};
with (npcs[npcscount-1]) {
this.hat = strtofloat(#I(clientr.hats,hatnum));
deletestring clientr.hats,hatnum; // <- always delets #0
callnpc -1,updategani;
}
}
//#CLIENTSIDE
if (weaponfired) triggeraction 0,0,serverside,DeleteTest,2;
|
Variables like those are local to a certain NPC. |
|
|
|