(05-10-2015, 03:40 PM)Mr. Badcatz Wrote: Firstly
You didn't tell the script where its going to play this sound, You also need to type in the entity the sound will come fro.
Otherwise you can use PlayGuiSound
PlayGuiSound("quest_completed", 1.6f);
Secondly, try using other shelf entities, not movable ones.
Maybe the ones from the storage file and make sure they are the correct name.
I am already using one of those. I'm sure they can get activated and de activated. (because everything can lol) (+w/ everything I mean entities.)
I'm trying now, hoping it works
Okey thanks everyone! It worked, But My old problem, I really forgot how to "move" and object.. Like I want my custom wall move (yes it is a connectionstate etc, After pulling the other lever, I hear the music, telling me that the script worked, but How do I move the wall>?! Like, I want to move it a little high...
This is my script for now
void MoveWall(string &in asEntity, int alState)
{
if (alState == 1)
{
SetMoveObjectState("EgyptMove",1.0f);
PlayGuiSound("quest_completed", 5);
return;
}
}
It didn;t work well, Do I have to type in connectionchamngestatecallback tihng in entity tab the name of the func?! like MoveWall, Or do you need more things..?