void OnStart()
{
AddUseItemCallback("", "Cellar", "CellarDoor", "UsedKeyOnDoor", true);
AddUseItemCallback("", "Mes", "Barrel", "Killperson", true);
PlayMusic("Kasteel", true, 0.7f, 1, 0, false);
}
void MoveWall(string &in asEntity, int alState)
{
if (alState == -1)
{
SetMoveObjectState("MoveWall", 1);
SetLeverStuckState("secretlever", -1, false);
PlaySoundAtEntity("", "quest_completed.snt", "MoveWall", 0, false);
StopMusic(5, 1);
PlayMusic("Outside", true, 0.7f, 1, 0, false);
SetPlayerMoveSpeedMul(0.5)
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("CellarDoor", false);
PlaySoundAtEntity("", "unlock_door.snt", "CellarDoor", 0, false);
RemoveItem("Cellar");
}
void BarrelCreak(string&in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "break_wood.snt", "Barrel", 0.5f, false);
SetPropHealth("Barrel", 0);
}
void Killperson(string &in asItem, string &in asEntity)
{
PlaySoundAtEntity("", "19_inject.snt", "Player", 0, false);
CreateParticleSystemAtEntity("", "ps_blood_tiny_splash.ps", "Barrel", false);
SetEntityActive("secretlever", true);
}