Trying to move a painting from closed to open for a hole in the wall. The process is unseen by the player, so I'm not concerned about animation. My script is as follows.
void OnStart()
{ SetEntityPlayerInteractCallback("secretButton", "OpenPainting", true);
}
void OpenPainting(string &in asEntity)
{
SetEntityActive("openP", true);
SetEntityActive("closeP", false);
GiveSanityBoostSmall();
}
But when testing the map, despite having entity "openP" set as inactive, to be activated in script, it's active in the map, and the script doesn't seem to work.
I know this will probably make a lot of you laugh, but scripting isn't my strong point, so while this might be an easy fix for you, it really isn't for me. I've done one other interact callback before this, so I figured it wouldn't be too difficult. I was wrong, so it seems, ahaha.