1
Technical forum / Re: "variable 'new_actor' is referenced but not defined"
« on: January 28, 2017, 09:05:42 PM »
I know I have no clue what i'm doing, but to be honest the documentation doesn't help me for squat, it's really lacking, and there are almost ZERO resources on the internet for WME. The tutorial tells me nothing about stuff I couldn't figure out by tinkering with the engine. Sorry.
Code: [Select]
#include "scripts\base.inc"
// here comes the stuff which initializes the scene
new_actor.SkipTo(400, 400);
new_actor.Direction = DI_DOWN;
new_actor.Active = true;
////////////////////////////////////////////////////////////////////////////////
// scene state
global Statestarttest;
// default values
if(Statestarttest==null)
{
Statestarttest.Visited = false;
// add scene states here
}
////////////////////////////////////////////////////////////////////////////////
// setup scene according to state variables
////////////////////////////////////////////////////////////////////////////////
if(!Statestarttest.Visited)
{
Statestarttest.Visited = true;
// this is our first visit in this scene...
}