![]() |
Selected Weapon
How would I do this....
NPC Code:selectedweapon = 0; Doesn't seem to work. |
-=Josey=-
Is selectedweapon a proper function? If so it would most likely go something like; this.weapon=selectedweapon;. No clue though... |
Quote:
|
I thought selectedweapon was read only...but then again...most things arent (This would approximate to chaning the id of npcs[0] :O )
|
-FooL-
I've seen it used in for loops before. Ex: NPC Code: |
It used to be changeable. After all it's necesarry to normally make custom weapon menus.
(Well it can also be done differently, but there's an in-built variable anyway so you might as well make use of it) |
Re: Selected Weapon
Quote:
try something like: timeout=.1; if (keydown(3)&&this.a<weaponscount)this.a++; if (keydown(1)&&this.a>0)this.a--; selectedweapon=this.a; |
| All times are GMT +2. The time now is 10:00 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.