void OnStart()
{
AddUseItemCallback("", "Cellar", "Cellar", "UsedKeyOnDoor", true);
AddEntityCollideCallback("Mes", "Barrel", "BarrelCreak", true, 1);
}
void MoveWall(string &in asEntity, int alState)
{
if (alState == -1)
{
SetMoveObjectState("MoveWall", 1);
SetLeverStuckState("secretlever", -1, false);
PlaySoundAtEntity("", "quest_completed.snt", "MoveWall", 0, false);
}
SetLevelDoorLocked("Cellar", false);
PlaySoundAtEntity("", "unlock_door.snt", "Cellar", 0, false);
RemoveItem("Cellar");
}
void BarrelCreak(string&in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("BarrelCreaking", "explosion_rock_large.snt", "Barrel", 0.5f, false);
SetPropHealth("Barrel", 0);
}