Hi,

i've got an entity to which I assigned this action (collect_ball):
Code:
function collected(){
if (event_type == EVENT_PUSH){
tocollect -= 1;
ent_remove(me);
}
}

action collect_ball(){
my.transparent = ON;
my.shadow = ON;
my.alpha = 50;
my.push = 1;
my.ENABLE_PUSH = ON;
my.event = collected;
}



When I hit it with the player entity (push = 100) it should disappear. But this does not work. The event function is not called.
Any idea?
Thx!


GameStudio Version: A7 Pro v7.86