How to do in c-script?
I've made this:
Code:
 Action Spawn2
{
my.push=1;
my.polygon=on;
while(my)
{

you=ent_create(bullet,vector(my.x-40,my.y,my.z),shoot_you);
you.passable=off;
wait (3);
}
wait(1);
}


Code:
Function Shoot_you
{
...
...

while(my && Player)
{
c_move(me,vector(shoot_speed*time_step,0,0),nullvector,Ignore_Push );
}

}


But tha game crash(black screen), I don't understand where the error is.
Someone can tell me what script should I use?

Something like: if player is near 200 quants to enemy, the enemy create a bullet.


~Vision Divine~