I do an interact callback between an in-game area script and a function that sets invisible the mesh of a book pile. thats what its supposed to do at least. But nothing happens, and there are no errors telling me what I could've done wrong. Ive quadruple checked all names and everything is consistent. Just the entity doesn't go anywhere, dissapear, or anything. Only the sound plays.
void OnStart()
{
SetEntityPlayerInteractCallback("ScriptInteract", "OnInteract", true);
}
void OnInteract(string &in asEntity)
{
PlaySoundAtEntity("", "BookSlide.snt", "Player", 0, false);
SetEntityPos("BookPile1", 3000, 3000, 3000);
//set entity pos was after I tried set mesh invisble and deactivate entity. Still nothing.
}