View Single Post
  #10  
Old 09-28-2006, 12:34 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
I have experienced this error alot while scripting the Malorian baddy.

NOTE FOR SENSITIVE READERS: GS1





PHP Code:
if (created) {
  
// Stuff
  
timeout .1;
}

if (
timeout) {
  
// stuff...
  
Move();
  
timeout .1;
}

function 
Move() {
  
// stuff...
  
move dxdytime8;
}

if (
movementfinished) {
  
//STUFF
  
timeout .1;

And unless the timeout in the 'movementfinished' is there, it wont execute the timeout.

Another example:

PHP Code:
if (created) {
  
// Stuff
  
timeout .1;
}

if (
timeout) {
  
// stuff...
  
Attack();
  
timeout .1;
}

function 
Attack() {
  
//stuff..
  
sleep 3;
  
timeout .1;

Unless the timeout is there after the sleep, well, you get the point by now.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote