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
Lever and Entity
Smackdown Offline
Junior Member

Posts: 13
Threads: 3
Joined: Jan 2013
Reputation: 0
#1
Lever and Entity

Hello

I want that when I turn a lever, there appear and disappear some Entities I want, I also want to add a sound. So it should look like that?

void OnStart()
{
??????("mechanismus2", "lever2", "????", true, false, 0);
}




void func2(string &in asEntity)
{
AddLocalVarInt("Var1", 1);
lever2();
}

void lever2()
{
if(GetLocalVarInt("Var1") == 1)

{
PlaySoundAtEntity("", "explosion_rock_large.snt", "player", 0.5f, false);
GiveSanityBoostSmall();
SetEntityActive("wine02_1", true);

}
}



Or how do I script that? I don't get it. Please help
05-07-2013, 03:45 PM
Find


Messages In This Thread
Lever and Entity - by Smackdown - 05-07-2013, 03:45 PM
RE: Lever and Entity - by Tomato Cat - 05-07-2013, 04:04 PM
RE: Lever and Entity - by Smackdown - 05-07-2013, 04:32 PM
RE: Lever and Entity - by Tomato Cat - 05-07-2013, 04:41 PM
RE: Lever and Entity - by DnALANGE - 05-07-2013, 05:00 PM
RE: Lever and Entity - by Smackdown - 05-07-2013, 05:19 PM



Users browsing this thread: 2 Guest(s)