(08-07-2012, 12:50 PM)Lake Wrote: I'm talking about two different maps! Use this script if nothing will happen because the entities to appear is in a dose map from this script will be activated
Fret not my friend! What you need is a variable, a global variable. Global variables act as normal variables, except they work on different levels of the game. You've been pretty vague up to this point in actually describing what causes the change in levels and what the change actually is, so I had to improvise some ideas, but change them to whatever suits your needs.
///First Map
void OnStart()
{
SetGlobalVarInt("global_var", 0);
}
void YourFunction()
{
AddGlobalVarInt("global_var", 1); //add this to change the second map
}
//--------------------------------------------------------------------------------//
///Second Map
void OnEnter()
{
if(GetGlobalVarInt("global_var") == 1)
{
///stuff you want to have happen in the second map
}
}
Hope that helped.
I rate it 3 memes.