Wintermute Engine Forum
Wintermute Engine => Technical forum => Topic started by: Russian on August 21, 2005, 08:13:55 PM
-
Is it possible to do something like
-if scene "1" visited , entity "2" visible - true-
This entity "2" in another scene
???
-
-if scene "1" visited , entity "2" visible - true-
This entity "2" in another scene
entity "2" must be global variable 8)
-
Excellent! But how?
Please give me some piece of code ::beer
-
Where have everybody gone? ::)
-
You need a global variable for this, lets call it Scene1Visited for example.
Define it with
global Scene1Visited;
in both scene_init.scripts.
Then in scene_init.script of Scene1 you write
Scene1Visited = true;
and in scene_init.script of Scene2
if(Scene1Visited == true)
{
entity2.Visible = true;
}
-
Thank you ::thumbup