(04-29-2011, 01:04 PM)Tanshaydar Wrote:  void SetSwingDoorLocked(string& mansion_2, bool abLocked, bool abEffects);
must be:
void SetSwingDoorLocked("mansion_2", true/false, true/false);
You should choose true or false.
Okay now my sccript looks something like this: 
void OnStart()
{
	AddTimer("tut01", 5, "Timer01");
	AddTimer("tut02", 10, "Timer02");
	SetSwingDoorLocked "mansion_2", true, false);
	
	if(ScriptDebugOn())
    {
        GiveItemFromFile("lantern", "lantern.ent");
 
        for(int i=0;i<10;i++) GiveItemFromFile("tinderbox_"+i, "tinderbox.ent");
    }
}
void Timer01(string &in asTimer)
{
	SetMessage("Example", "Entry1", 0);
	
}
void Timer02(string &in asTimer)
{
	SetEntityActive("servant_grunt_1" , true);
	ShowEnemyPlayerPosition(string& servant_grunt_1);
}
void OnEnter()
{
 
}
void OnLeave()
{
 
}
And now this error message comes up:
![[Image: 23rwztu.png]](http://i56.tinypic.com/23rwztu.png)