(06-27-2012, 12:59 AM)Obliviator27 Wrote: You'll have to specify what doesn't work.
As far as your script goes, you're telling the door to lock. Use false instead of true.
The door unlocking doesn't work
void OnEnter()
{
AddUseItemCallback("OpenDoor", "cellarkey", "level_cellar_1", "UnlockLevelDoor", true);
}
void UnlockLevelDoor(string &in Item, string &in Entity)
{
SetLevelDoorLocked("level_cellar_1", false);
PlaySoundAtEntity("", "unlock_door", "level_cellar_1", 1, false);
RemoveItem("cellarkey");
RemoveItem("trollkey");
}
What's the problem? I tried to google it, youtube it etc. Can't find the solution..