ok i dont use the templates but this is how i would do this...

I think the reason you keep going back to the start position is because the level keeps getting restarted (level_load) and then the player's position is reset. I would make a vector that can store the player's position before you leave the level and then read it back when you re-enter the level.

var level_2_player[3] = 0,0,0;

action goto_level_2()
{
level_2_player[0] = player.x;
level_2_player[1] = player.y;
level_2_player[2] = player.z;
level_load("level2.wmb");
}

Then apply this action to an entity in which you want to trigger a change to level 2.

Might not be code-saving but i think it should work. Sry if it doesn't.




Last edited by DJBMASTER; 04/10/08 01:00.