Thanks, but hmm, doesne´t work, not even when i´m take the player == you from event_block - this will never happen ;):
Here is the Code - even with the particle effect:
function hit_block_effect(PARTICLE *p)
{
if(random(10) < 5) p.bmap = plasma_blue;
else p.bmap = plasma_red;
p.flags |= (BRIGHT | MOVE | TRANSLUCENT);
p.vel_z = random(2)-1;
p.vel_x = random(2)-1;
p.vel_y = random(2)-1;
p.lifespan = 5;
p.size = 3;
p.alpha = 50;
p.event = plasma_fade;
}
function remove_plasma_ball()
{
if(event_type == EVENT_ENTITY && you == player) { return; }
if(event_type == EVENT_BLOCK) { effect(hit_block_effect, 1, target, normal); }
my.skill1 = 1;
ptr_remove(me);
}