Thank You For Reading this thread...
My problem is that i can not find the error in this script...
I have a key named Key_Tomb_1 and a door named Doortodeath_1
When i use the key nothing happens...I wanted it to open the unlock the door... It is a level door by the way...NOT a swing door...Can you help me please
?
So here is my script----
////////////////////////////
//Run First Time Starting map
void OnStart()
{
AddUseItemCallback("", "key_Tomb_1", "Doortodeath_1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("Doortodeath_1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "Doortodeath_1", 0.0f, false);
RemoveItem("Key_Tomb_1");
AddDebugMessage("KeyOnDoor", false);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
The one who solves it gets the place on the credits...
Hope you can help me...You will probably be on youtube...PS-Pewdiepie
Please help ---Il leave the custom story attached to this post if you want to try it and see it for your self---
The key is on the top of the "stove front"