You should not load a level through a level entity.
Make an own function for that, because the action that loads the level will be terminated when it loads a level.

This should give you a start:
ENTITY* level_change_ent;
action level_changer()
{
level_change_ent = me;
}
function levelChange()
{
while(!levelchange_ent){wait(1);}
while(vec_dist(player.x,levelchange_ent.x)>64)
{
levelchange_ent.pan -= 3*time_step;
wait(1);
}
level_load(levelchange_ent.string1);
}
You should make this function as startup or start it in main(). Don“t start it through an action. Then it should work.