Thread: %
View Single Post
  #5  
Old 01-16-2002, 05:20 AM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Quote:
Originally posted by LilNiglet
What is it useful for?
In certain for loops, E.G.
NPC Code:
if (created||timeout) {
for (this.i=0;this.i<3;this.i++) if (keydown(this.i)){
this.selected=(this.selected+vecx(this.i))%weapons count;
}
timeout=0.05;
}

Would mean that even if you are selecting your last weapon it'd reset back to the first one if you push right while on that weapon.
I also used it for the online time system Munkee requested.
__________________


Last edited by grim_squeaker_x; 01-16-2002 at 05:33 AM..
Reply With Quote