Hi,
I've finally managed to create a code for collision, so now the model knows when its hit by sth. But then it still doesn't know with what it has collided. like it can't know if it hits a bullet or another player
I've read that you must do sth with a "you" pointer, but I dont get it.
here the code:

function collision_event()
{
if (event_type == EVENT_ENTITY || event_type == EVENT_IMPACT) // the entity has collided with one of the entities in the level?
{
hit = 1;
}
}

action something()
{
my.emask |= (ENABLE_BLOCK | ENABLE_ENTITY | ENABLE_IMPACT;
// make entity sensitive for block and entity collision
my.event = collision_event;
}
hope someone can help me