Quote:
Originally posted by Slaktmaster
Something like:
if (playerchats&&strequals(#c,lay down <weaponname>)) {
this.x = {0.5,-0.5,0.5,2.5};
this.y = {-1,1,3,1};
putnpc weaponimage,weaponcode,this.x[playerdir],this.y[playerdir];
destroy;
}
That is just for laying weapons so it would need more code, but it's a good start.
|
i was just looking over this script, and it is really buggy
NPC Code:
this.x = {0.5,-0.5,0.5,2.5};
this.y = {-1,1,3,1};
putnpc weaponimage,weaponcode,this.x[playerdir],this.y[playerdir];
this would only put a weapon at those cordinates, you would have to do, playerx+this.x[playerdir] and player.y+this.y[playerdir]
also, if you face left