Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
It doesn't work, maybe impossible?!
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#8
RE: It doesn't work, maybe impossible?!

(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

PHP Code: (Select All)
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..?
(This post was last modified: 05-10-2015, 06:39 PM by Amnesiaplayer.)
05-10-2015, 05:59 PM
Find


Messages In This Thread
RE: It doesn't work, maybe impossible?! - by Amnesiaplayer - 05-10-2015, 05:59 PM



Users browsing this thread: 2 Guest(s)