10-20-2011, 07:48 PM
So here is the scripting:
SetEntityPlayerInteractCallback("office_key", "IsItLockedComplete", true);
void IsItLockedComplete(string &in entity, int alState)
{
CompleteQuest("open_door_quest", "open_door");
GiveSanityBoost(5, true);
}
the error says it is a problem with the GiveSanityBoost command? I think it has something to do with (string &in entity, int alState).
SetEntityPlayerInteractCallback("office_key", "IsItLockedComplete", true);
void IsItLockedComplete(string &in entity, int alState)
{
CompleteQuest("open_door_quest", "open_door");
GiveSanityBoost(5, true);
}
the error says it is a problem with the GiveSanityBoost command? I think it has something to do with (string &in entity, int alState).