Frictional Games Forum (read-only)

Full Version: Locked and Unlocked doors§
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
void OnStart()
{
AddUseItemCallback("", "Old Door key", "mansion_5", "KeyOnDoor", true);
AddUseItemCallback("", "Hidden Key", "cabinet_metal_1", "KeyOnDoor", true);
}


void KeyOnDoor(string &in asItem, string &in asEntity)

{
SetSwingDoorLocked("mansion_6", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "mansion_6", 0.0f, true);
SetSwingDoorLocked("cabinet_metal_1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "cabinet_metal_1", 0.0f, true);
}

My doos wont be locked
Be more specific.
(12-25-2011, 08:45 PM)jessehmusic Wrote: [ -> ]void OnStart()
{
AddUseItemCallback("", "Old Door key", "mansion_5", "KeyOnDoor", true);
AddUseItemCallback("", "Hidden Key", "cabinet_metal_1", "KeyOnDoor", true);
}


void KeyOnDoor(string &in asItem, string &in asEntity)

{
SetSwingDoorLocked("mansion_6", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "mansion_6", 0.0f, true);
SetSwingDoorLocked("cabinet_metal_1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "cabinet_metal_1", 0.0f, true);
}

My doos wont be locked
I bolded the text that might be your problem.