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
  #1  
Old 02-08-2002, 04:02 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
Golem

Anyone know why this f***s up?

// NPC made by Floating Head
if(created){
this.mode=0;
}
if (playertouchsme) {
toweapons Golem;
}
if(weaponfired){
if(this.mode=0){
this.mode=1;
timeout=.05;
}
if(this.mode=1){
this.mode=0;
setani idle,;
}
}
if(timeout){
if(keydown(0)){
setani golem_walk-up,;
timeout=.05;
}
if(keydown(1)){
setani golem_walk-left,;
timeout=.05;
}
if(keydown(2)){
setani golem_walk-down,;
timeout=.05;
}
if(keydown(3)){
setani golem_walk-right,;
timeout=.05;
}
if(keydown(5)){
setani golem_slam,;
timeout=.05;
}
else{
setani golem_down-idle,;
}
timeout=.05;
}

For some reason if u stand still it walks and if u hold down a key its idle =/
__________________

Check out the development at:
http://razza.org/lordhelmut/FantasyTales/index

Last edited by Kaimetsu; 02-08-2002 at 10:32 AM..
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 12:50 PM.


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