The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
#1
It doesn't work, maybe impossible?!

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...
05-09-2015, 07:03 PM
Find


Messages In This Thread
It doesn't work, maybe impossible?! - by Amnesiaplayer - 05-09-2015, 07:03 PM



Users browsing this thread: 1 Guest(s)