Put this in the End Step Event of the object being shot
with objBullet
{
if collision_line(x,y,xprevious,yprevious,other.id,true,false)
{
//x=xprevious; //Optional move bullet back
//y=yprevious;
//move_contact_all(direction,speed);
with other
{
event_perform(ev_collision,other.object_index);
}
}
}