hello! I'm working (for my excercises) on a spaceship shooter.
See below, the code relative to firing, please:

Code:

...
...
if(key_ctrl && firing==0) {
firing = 1;
ent_create("fuoco.mdl",vector(my.x,my.y+32,my.z),fuoco);
}
...
...




my is related to the spaceship. And see this following code:

Code:

var firing = 0;
var s_laser;

sound laser <laser1.wav>;

function event_fuoco() {
firing = 0;
ent_remove(my);
}

function f_fuoco() {
temp.x = 0;
temp.y = 12*time;
temp.z = 0;
c_move(e_fuoco, temp, nullvector, IGNORE_YOU); // THIS DON'T WORKS...
s_laser = snd_play(laser,30,0);
waitt(3); //
firing = 0;
}

action fuoco {
e_fuoco = my;
e_fuoco.enable_block = ON;
e_fuoco.event = event_fuoco;
e_fuoco.scale_x = 0.066;
e_fuoco.scale_y = 0.066;
e_fuoco.scale_z = 0.066;
f_fuoco();
}



I'll only see the fire identity appearing but don't move upward... Any idea?

Thank you!