Thread: Weapon select
View Single Post
  #4  
Old 01-07-2002, 01:33 PM
BlKnight BlKnight is offline
Not in Use
Join Date: Mar 2001
Location: N/A
Posts: 1,527
BlKnight is on a distinguished road
Quote:
Originally posted by BocoC
selectedweapon [index];

Say you wanted to automatically set the player's weapon to weapon Bow.
NPC Code:

for (i=0;i<weaponscount;i++) {
if (strequals(#w(i),Bow)) {
selectedweapon=i;
}
}

Bah...I'm not used to these fancy n00b commands that make things which can already be done easier -_-
__________________
This account is no longer is use.
Reply With Quote