void OnLeave()
{
}
void OnStart()
{
AddUseItemCallback("", "sleutel1", "deur1", "UsedKeyOnDoor", true);
AddEntityCollideCallback("Player", "BreakingArea", "BoardCreak", true, 1);
}
void UsedKeyOnDoor (string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("deur1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "deur1", 0, false);
RemoveItem("sleutel1");
}
void BoardCreak(string&in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("WoodCreaking", "CREAKINGNOISE.snt", "BreakingArea", 0.15f, false);
AddTimer("ImFaaaalling", 3.34f, "StartFalling");
}
void StartFalling(string &in asTimer)
{
SetPropHealth("Board", 0);
}