Hi,

I am working on a simple shooter. For player controll, I worked with the tutorial "workshop 24:

this is my entity creation:

Code:
action spieler_aktion()
{
 spieler = my;
 my.STATE = 1;
	
  while(1)
  {

    ...
    if(last_bomb_x == 15) last_bomb_x = -15;
    else last_bomb_x = 15;
    ent_create("bomb.mdl",vector(my.x+last_bomb_x,my.y+10,my.z),move_bomb);
    ...

    wait(1);
  }
}



then my move-bom function

Code:
function move_bomb() 
{
 while(1)
 {
  c_setminmax(me);
  my.roll = your.roll;
  c_move(me, vector(0, 15 * time_step, 0), vector(0, 0, 0), GLIDE);
  wait(1);
 }
}



You see nothing complicated laugh The problem is "my.roll = your.roll;" If move_bomb() is called - I get error message "Crash in move_bomb:SYS"

I don`t know why laugh

Cheers

Ditje

---------------------------------------------------------

Edit: I found the solution. It was the collions mode. When I changed it to IGNORE_YOU it works fine.

I haven`t really understood where the confict between colision and my .roll-settings is, but there must be one laugh

Last edited by Ditje; 07/20/10 15:20.