void OnStart()
{
AddUseItemCallback("", "key1", "hatch1", "UsedKeyOnHatch", true);
AddUseItemCallback("", "key2", "prison_1", "DoorLocked", true);
AddUseItemCallback("", "key2", "prison_2", "DoorUnlocked", true);
AddEntityCollideCallback("hatch1", "ScriptArea_1", "CollideAreaLadder", true);
}
void UsedKeyOnHatch(string &in asItem, string &in asEntity)
{
SetEntityActive("block1", false);
SetSwingDoorLocked("hatch1", false, true);
RemoveItem("key1");
}
void DoorLocked(string &in asItem, string &in asEntity)
{
SetEntityActive("prison_1", false);
SetEntityActive("prison_2", true);
AddUseItemCallback("", "key2", "prison_1", "DoorLocked", true);
}
void DoorUnlocked(string &in asItem, string &in asEntity)
{
SetEntityActive("prison_1", true);
SetEntityActive("prison_2", false);
AddUseItemCallback("", "key2", "prison_2", "DoorUnlocked", true);
}
void CollideAreaLadder(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("LadderArea_1", true);
}
void OnEnter()
{
}
void OnLeave()
{
}
The only thing I know is that there is a problem with the last callback/function because if I delete that it works just fine
I keep getting a message saying there are "no matching signatures" I know what this means but I just can't seem to find out what the problem is.
Thanks in advance
-Imre