View Single Post
  #25  
Old 10-05-2002, 12:54 AM
sage_chaozu sage_chaozu is offline
Registered User
sage_chaozu's Avatar
Join Date: Feb 2002
Location: Florida, USA
Posts: 143
sage_chaozu will become famous soon enough
Send a message via ICQ to sage_chaozu Send a message via AIM to sage_chaozu Send a message via MSN to sage_chaozu Send a message via Yahoo to sage_chaozu
Quote:
Originally posted by emortylone

NPC Code:

if (created)
{ toweapons *Sword-Only;
this.weap=selectedweapon;
timeout=0.25;
}

if (timeout)
{ if (!selectedweapon=this.weap)
{ selectedweapon=this.weap;}
timeout=0.25;
}


I don't think that would work as good as the example I posted earlier because the weapon's index would change if a weapon whose index is lower gets deleted.

Also one reason why to have the sword disabled is so you can have a server whose primary weapon is not a sword. Like for instance it could be a regular pistol or socom.
Reply With Quote