I'll write an example down:
Code:
function entity_event()
{
  if (event_type == EVENT_CLICK) 
  {
    ent_remove(me);
  }
}

action entity_action()
{
  my.emask |= ENABLE_CLICK;
  my.event = entity_event;
}



If you assign the action "entity_action" to an entity it will be removed if you click it.
But be sure that:
1st: mouse_range is at least the distance between camera and entity
2nd: mouse_mode = 1 or 2

derGarv


GameStudio Version: A7 Pro v7.86