void OnStart()
{
AddEntityCollideCallback("Player", "AreaActivateStatue1", "CollideAreaStatue1", true, 1);
}
void CollideAreaStatue1(string &in asParent, string &in asChild, int alState)
{
AddEntityCollideCallback("Player", "AreaActivateStatue2", "CollideAreaStatue2", true, 1);
SetEntityActive("statue1", false);
SetEntityActive("statue3", true);
}
void CollideAreaStatue2(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("statue2", false);
SetEntityActive("statue4", true);
}
Statue 1 and 3 are the ones who stood in the right place, 2 and 4 are the "moved" ones.
Just place 4 statues and set number 2 and 4 inactive and put them in the place where you want them to spawn. Call your ScriptBoxes
AreaActivateStatue1 and
AreaActivateStatue2.
AreaActivateStatue2 only gets triggered if you already walked into the first one.
(Just put the collidecallback in OnStart if you don't want this.)
Make sure you use entity statues and not static objects.
You can add sounds and other stuff to make it a bit more fancy