02-03-2014, 11:35 AM
So i've seen in other custom stories you need to find a key to unlock a chest, which contains something you need.
I couldn't manage to get a script working for this case, my assumption would be this:
void OnStart()
{
SetLeverStuckState("chest", true, true);
AddUseItemCallback("", "keyy5", "chest", "unlockchest", true);
}
void unlockchest(string &in asItem, string &in asEntity)
{
SetLeverStuckState("chest", false, true);
RemoveItem("keyy5");
}
But whenever I start the map, I get the error shown in the picture.
Can anyone help me?
I couldn't manage to get a script working for this case, my assumption would be this:
void OnStart()
{
SetLeverStuckState("chest", true, true);
AddUseItemCallback("", "keyy5", "chest", "unlockchest", true);
}
void unlockchest(string &in asItem, string &in asEntity)
{
SetLeverStuckState("chest", false, true);
RemoveItem("keyy5");
}
But whenever I start the map, I get the error shown in the picture.
Can anyone help me?