Posted By: ello
what's a dangerous instruction?? - 02/05/10 20:24
hi there,
i am getting a malfuntion 1511 : Dangerous instruction in event soundso
whats that??
this is the code its refering to
i am getting a malfuntion 1511 : Dangerous instruction in event soundso
whats that??
this is the code its refering to
Code:
void stern_spray() { set(me,PASSABLE|TRANSLUCENT|ZNEAR|BRIGHT); // if (random(10)>7) set(me,BRIGHT); my.alpha = random(50)+50; my.x += random(64)-32; my.y += random(64)-32; my.z += random(64)-32; vec_scale(my.scale_x,0.01 + random(10)/33); my.roll=random(360); var xspeed = random(23) - 11.5, yspeed = random(23) - 11.5, zspeed = random(23) - 11.5, rollspeed = random(14)-7; while(my.alpha>0) { my.alpha -= 5*time_step; my.roll += rollspeed; c_move(me,nullvector,vector(xspeed,yspeed,zspeed),IGNORE_PASSABLE|IGNORE_SPRITES); zspeed -= time_step; wait(1); } ent_remove(me); }