02-19-2011, 06:45 AM
In the level, the key will not unlock the doors. Not even one. And i cant work out why.
Any aid is appreciated.
Any aid is appreciated.
Quote:void OnStart()
{
AddUseItemCallback("", "KeyLobby", "Door1", "UsedKeyOnDoor1", true);
AddUseItemCallback("", "KeyLobby", "Door2", "UsedKeyOnDoor2", true);
AddUseItemCallback("", "KeyLobby", "Door3", "UsedKeyOnDoor3", true);
}
void UsedKeyOnDoor1(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Door1", false, true);
PlaySoundAtEntity("", "unlock_door", "Door1", 0, false);
}
void UsedKeyOnDoor2(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Door2", false, true);
PlaySoundAtEntity("", "unlock_door", "Door2", 0, false);
}
void UsedKeyOnDoor3(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Door3", false, true);
PlaySoundAtEntity("", "unlock_door", "Door3", 0, false);
}