VERY GOOD! Ive forgotten ACTIVATE_SHOOT!

Thought it works now...but still my entity is not hit. frown
Nothing works in the last time...i should shut down my computer next time wink

Code:
ACTION __Main_Gun_Fire {


vec_set(temp,vector(5000,0,0)); // the weapon has a firing range of 5000 quants
vec_rotate(temp, player.pan);

c_trace (player.x,temp,IGNORE_ME|IGNORE_PASSABLE|ACTIVATE_SHOOT);
}

on_mouse_left __Main_Gun_Fire;


And the entity
Code:
ACTION Sprite_Event {
IF(EVENT_TYPE==EVENT_SHOOT) {
 ENT_MORPH(ME,"leftf+23.tga");
 MY.SKILL3=4;
 MY._FORCE=0;
}
..
}

...
..
ACTION THE_SPRITE_TO_HIT {
MY.ENABLE_SHOOT=ON;
MY.EVENT=Sprite_Event;
..




Ive added draw_point3d(target.x,vector(50,50,255),100,3); and the trace seams
to went into the floor. When i look down and go near to the entity i can hit
it

Last edited by rayp; 11/20/08 02:51.

Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;