06-11-2017, 10:48 PM
I had all done and set up and then this error showed up what am i doing wrong ? And the .HPS and .Map file is in the maps folder and have both exact same names
This is my Code:
void OnStart()
{
AddUseItemCallback("", Key, Door, "UseKeyOnDoor", true);
}
void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Door", false, true);
}
void OnEnter()
{
SetPlayerLampOil(100);
PreloadSound("amb_idle.snt");
}
void OnLeave()
{
}
This is my Code:
void OnStart()
{
AddUseItemCallback("", Key, Door, "UseKeyOnDoor", true);
}
void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Door", false, true);
}
void OnEnter()
{
SetPlayerLampOil(100);
PreloadSound("amb_idle.snt");
}
void OnLeave()
{
}