Thread: Market
View Single Post
  #24  
Old 02-05-2002, 08:26 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
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
__________________
Staff on Renegade


email: [email protected]
aim: papivicente