void OnStart()
{
AddUseItemCallback("", "key_laboratory_1", "level_dungeon_2", "unlock_level_dungeon_2", true);
AddUseItemCallback("", "hollow_needle_1", "cabinet_metal_10", "unlock_cabinet_metal_10", true);
AddUseItemCallback("", "hollow_needle_1", "cabinet_metal_9", "unlock_cabinet_metal_9", true);
AddUseItemCallback("", "hollow_needle_1", "cabinet_metal_8", "unlock_cabinet_metal_8", true);
AddUseItemCallback("", "hollow_needle_1", "cabinet_metal_7", "unlock_cabinet_metal_7", true);
AddUseItemCallback("", "hollow_needle_1", "cabinet_metal_6", "unlock_cabinet_metal_6", true);
AddUseItemCallback("", "hollow_needle_1", "cabinet_metal_5", "unlock_cabinet_metal_5", true);
AddUseItemCallback("", "hollow_needle_1", "cabinet_metal_4", "unlock_cabinet_metal_4", true);
AddUseItemCallback("", "hollow_needle_1", "cabinet_metal_3", "unlock_cabinet_metal_3", true);
AddUseItemCallback("", "hollow_needle_1", "cabinet_metal_2", "unlock_cabinet_metal_2", true);
AddUseItemCallback("", "hollow_needle_1", "cabinet_metal_1", "unlock_cabinet_metal_1", true);
}
void unlock_level_dungeon_2(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("level_dungeon_2", false);
PlaySoundAtEntity("", "unlock_door", "level_dungeon_2", 0, false);
RemoveItem("key_laboratory_1");
}
void unlock_cabinet_metal_10(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("cabinet_metal_10", false);
PlaySoundAtEntity("", "unlock_door", "cabinet_metal_10", 0, false);
}
void unlock_cabinet_metal_9(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("cabinet_metal_9", false);
PlaySoundAtEntity("", "unlock_door", "cabinet_metal_9", 0, false);
}
void unlock_cabinet_metal_8(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("cabinet_metal_8", false);
PlaySoundAtEntity("", "unlock_door", "cabinet_metal_7", 0, false);
}
void unlock_cabinet_metal_7(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("cabinet_metal_7", false);
PlaySoundAtEntity("", "unlock_door", "cabinet_metal_7", 0, false);
}
void unlock_cabinet_metal_6(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("cabinet_metal_6", false);
PlaySoundAtEntity("", "unlock_door", "cabinet_metal_6", 0, false);
}
void unlock_cabinet_metal_5(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("cabinet_metal_5", false);
PlaySoundAtEntity("", "unlock_door", "cabinet_metal_5", 0, false);
}
void unlock_cabinet_metal_4(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("cabinet_metal_4", false);
PlaySoundAtEntity("", "unlock_door", "cabinet_metal_4", 0, false);
}
void unlock_cabinet_metal_3(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("cabinet_metal_3", false);
PlaySoundAtEntity("", "unlock_door", "cabinet_metal_3", 0, false);
}
void unlock_cabinet_metal_2(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("cabinet_metal_2", false);
PlaySoundAtEntity("", "unlock_door", "cabinet_metal_2", 0, false);
}
void unlock_cabinet_metal_1(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("cabinet_metal_1", false);
PlaySoundAtEntity("", "unlock_door", "cabinet_metal_1", 0, false);
}