I should know better than to question the Master...

Ok, Doug. You got me. I had a dangerous event alright.

Here's the offending code, which is offensive in one script, and works fine in another. (Go figure!)

code:
function bullet_event()
{
beep;
remove me;
}

var bulletspeed[3] = 20,0,0;


ACTION fire_bullet
{
my.event = bullet_event;
my.enable_entity = on;

while (1)
{
vec_set(temp,bulletspeed);
vec_scale(temp,time); // temp = time corrected bulletspeed
move_mode = ignore_you;
ent_move(temp,nullvector);
wait(1);
}
}
//*****************************************


FUNCTION FIRE_GUN()
{
IF(MY.SHOT_TIMER > 0){RETURN;}
IF(PLAYER_SHIP1 == ME) //PLAYER1 = RED
{ENT_CREATE(RED_SHOT_STR,MY.POS,FIRE_BULLET);}

I've since added a wait(1) as the first line of the bullet event, which makes it "undangerous", but the bullet still explodes immediately while inside my ship.

Any thoughts?

- WildCat


Visit us at [url=http://www.vertexgames.com]Vertex Games[/url]!