Thread: Weapon select
View Single Post
  #2  
Old 01-07-2002, 12:53 PM
BlKnight BlKnight is offline
Not in Use
Join Date: Mar 2001
Location: N/A
Posts: 1,527
BlKnight is on a distinguished road
Re: Weapon select

Quote:
Originally posted by kaddar
Is there a command to select weapon (index) but not run any scripts in it, only select it for you weapon usage?


What do you mean? You could have a variable set on the selected weapon...or have a thing go like this:

for (this.i=0;this.i<weaponscount-1;this.i++) {
if (strequals(#w(this.i),<WEAPON YOU ARE LOOK FOR HERE>)) {
this.selectedweapon=this.i;
}
}

Then you just use callweapon and for the index in call weapon use this.selectedweapon.
__________________
This account is no longer is use.

Last edited by BlKnight; 01-07-2002 at 01:34 PM..
Reply With Quote