Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #31  
Old 01-08-2004, 03:28 AM
Thought Thought is offline
PipBoy Extraordinaire!
Thought's Avatar
Join Date: Nov 2001
Location: Long Beach, California.
Posts: 692
Thought is on a distinguished road
Quote:
Originally posted by ZeLpH_MyStiK
NPC Code:

if (created) timeout=.05;
if (timeout) {
if (keydown(#)) {
// move stuff
}elseif (keydown(#)) {
// move stuff
}elseif (keydown(#)) {
// move stuff
}elseif (keydown(#)) {
// move stuff
}else{
// idle stuff
}
timeout=.05;
}


Use elseifs, they're useful
WRONG.

Think about it, what do you do to run diagonally? You press two arrow keys.
__________________
Rick ([email protected])
#gscript on FreeNode (#gscript Guild, #gscript Information)
Graal User Statistics

I am now using my new account, Rick.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:12 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.