(07-18-2011, 02:40 PM)Roenlond Wrote: You need three columns for setswingdoorlocked, not just two. Add a true/false to each of them if you wish to use effects when it happens.
Hi I have a similar problem to the one you solved for another person, where he was trying to lock and unlock a cabinet door i am trying to simpley unlock a level door on my map with a key, can you please help i get the same error!
here is the code
void OnStart()
{
AddUseItemCallBack("", "Key_1", "Lev_1", "FUNCTION", true);
}
void OnEnter()
{
}
void OnLeave()
{
}
void FUNCTION("Key_1", "Lev_1")
{
SetLevelDoorLocked("Lev_1", false);
RemoveItem("Key_1");
}