05-18-2014, 07:55 PM
Hi
i need a when PLAYER pick up KEY doors unlocks,without using key on any doors
i have a some script here
void OnStart()
{
SetEntityPlayerInteractCallback("Key01", "PickKey", true);
}
void PickKey(string &in asEntity, string &in asType)
{
GiveSanityBoostSmall(); //Just a nice little sanity boost
SetSwingDoorLocked("Door01", false, true);
}
so to don't use key just pick it up ok ?
Spoiler below!
NO IT'S NOT PROBLEM LIKE:HEY I NEED A HELP HOW TO MAKE KEY UNLOCKS DOOR I'M SO STUPID...NO! something else :)
i need a when PLAYER pick up KEY doors unlocks,without using key on any doors
i have a some script here
Spoiler below!
void OnStart()
{
SetEntityPlayerInteractCallback("Key01", "PickKey", true);
}
void PickKey(string &in asEntity, string &in asType)
{
GiveSanityBoostSmall(); //Just a nice little sanity boost
SetSwingDoorLocked("Door01", false, true);
}
so to don't use key just pick it up ok ?
Spoiler below!
Problem:Script doesn't work no errors just don't work...!