Posted By: NovaTech2010
c_move crashed - 07/12/15 18:56
Hoi ^^
I'm on script a shooter, now c_move is crashing the engine, although the code has already worked...
My guess is the engine is to old...
If i delete the c_move-row the game don't crash, but i need the c_move command
Thank you for helps and tips and stuff!
I'm on script a shooter, now c_move is crashing the engine, although the code has already worked...
My guess is the engine is to old...
Code:
function bulletHit(){ /* Hit-Event */ } function alginProjectil(ENTITY* bullet,ENTITY* weapon){ /* Algin bullets */ } function shoot_bullet01(){ var life=50; my.event=bulletHit; alginProjectil(me,you); ang_add(me.pan,vector(random(3)-1.5,random(3)-1.5,random(3)-1.5)); while(life>0){ c_move(me,vector(0,-1000*time_step,0),nullvector,USE_POLYGON | IGNORE_YOU);//[color:#FF0000]<---Crash[/color] life-=1*time_step; wait(1); } }
If i delete the c_move-row the game don't crash, but i need the c_move command
Thank you for helps and tips and stuff!