05-09-2015, 07:03 PM
SetEntityConnectionStateChangeCallback("WorkingLever", "MoveShelf");
void MoveShelf(string &in asEntity, int alState)
{
if (alState == -1)
{
SetEntityActive("Shelf2", true);
SetEntityActive("Shelf1", false);
PlaySoundAtEntity("", "quest_completed.snt", "", 0, false);
return;
}
}
I used a shelf called "Shelf1" that has to disappear, and Shelf2 has to appear.
I know it's a little lame, but the shelf I use is the one without moveblabla.
And the shelf is like, too far away from you, so you couldn't notice it "appeared&disappeared" instead of moving.
But it doesn't work.
the sound doesn't play either.
Did I forgot something?! like to mention, I don't have anything written in the "entity" tab...
void MoveShelf(string &in asEntity, int alState)
{
if (alState == -1)
{
SetEntityActive("Shelf2", true);
SetEntityActive("Shelf1", false);
PlaySoundAtEntity("", "quest_completed.snt", "", 0, false);
return;
}
}
I used a shelf called "Shelf1" that has to disappear, and Shelf2 has to appear.
I know it's a little lame, but the shelf I use is the one without moveblabla.
And the shelf is like, too far away from you, so you couldn't notice it "appeared&disappeared" instead of moving.
But it doesn't work.
the sound doesn't play either.
Did I forgot something?! like to mention, I don't have anything written in the "entity" tab...