action enemy_fight3 // attached to the enemy
{
while(!player) { wait(1); }
...
ent_vertex(my.sword_tip, 1840);
ent_vertex(my.sword_base, 306);
trace_mode = ignore_me + ignore_passable;
trace (my.sword_base, my.sword_tip);
if (result != 0)
{
//my.enable_impact = on;
my.event = player_damage;
effect (particle_blood, 2, target, normal);
if (you != null) {you.health -= 2 * time;}
ent_playsound (my, zombie_wav, 50);
}
ent_cycle("attack", my.skill20);
my.skill20 += 5 * time;
wait (1);
...