Originally Posted By: Saschaw04
Code:
function camera_follow(ENTITY* ent)                 //Dritte Person Kamera

 { 
    while(1) { 

      wait(5); 
    } 
 } 
 
action move(){
  
 while(1){         // ALLES SOLL FORTLAUFEND PASSIEREN
 camera_follow(me);      //Kamera soll Spieler folgen	
 

wait(1);
}	

}

You need to go throw your code and make sure, that you don't put function with LOOP inside of the other LOOP (in another function). Here f.e. you you call 'camera_follow(me);' inside of the 'move' action's LOOP. This will lead to increasing functions and to the error you've faced. To avoid this, you need to call 'camera_follow(me);' outside of the LOOP (right before it!), so you won't run function with it's own LOOP each frame. This is pretty tricky at the start, but very easy when you'll understand everything on practice!


Edit: too late, but well, nice to see that you've found it yourself laugh

Last edited by 3run; 04/05/15 21:02.

Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung