Thread: -keyNOTdown(i)
View Single Post
  #12  
Old 01-06-2004, 04:49 PM
D1ce2 D1ce2 is offline
Registered User
Join Date: Dec 2003
Location: United Kingdom
Posts: 446
D1ce2 is on a distinguished road
Send a message via AIM to D1ce2 Send a message via Yahoo to D1ce2
Quote:
Originally posted by Loriel
I thiiiink the original poster's enquire was about a function that would tell him whether any of the keys 0-3 was pressed, so he could unset his walking gani accordingly... so I suppose the most sensible thing to do is
NPC Code:
walking = false;
for (d = 0; d < 4; d ++) {
if (keydown(d)) {
do_walking_stuff();
walking = true;
}
}
tokenize idle walk;
setani #t(walking),;

Either way is fine, though I prefer yours.
__________________

The time is coming
Reply With Quote