There's something wrong with my code, for I get this error message:
This is my code, can somebody see what's wrong with it?
void OnStart()
{
AddUseItemCallback("", "RoomKey", "RoomDoor", "UsedKeyOnDoor", true);
SetPlayerInteractCallback("RoomKey", "Activatebob", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("RoomDoor", false, true);
PlaySoundAtEntity("", "unlock_door", "RoomDoor", 0, false);
RemoveItem("RoomKey");
}
void Activatebob(string &in asEntity)
{
setEntityActive("Bob", true);
}
and yes, I'm sure I named my servant Bob.