12-26-2010, 05:54 PM
Yep i have problem I have level door and its locked and it only unlocks when you use key! Well... i can hear the door sound when its locked then when i use key to hear unlock sound but problem is "Why i cant enter level door then?"
Door script:
AddUseItemCallback("", "Prison Entrance Key", "level_celler_1", "KeyOnDoor3", true);
void KeyOnDoor3(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("level_celler_1", false, true);
RemoveItem("Prison Entrance Key");
PlaySoundAtEntity("", "unlock_door.snt", "level_celler_1", 0.0f, true);
}
Door script:
AddUseItemCallback("", "Prison Entrance Key", "level_celler_1", "KeyOnDoor3", true);
void KeyOnDoor3(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("level_celler_1", false, true);
RemoveItem("Prison Entrance Key");
PlaySoundAtEntity("", "unlock_door.snt", "level_celler_1", 0.0f, true);
}