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
Multiple Issues Help Main game blackbox error interline 21
Casotime1999 Offline
Junior Member

Posts: 23
Threads: 6
Joined: Mar 2015
Reputation: 0
#5
RE: Main game blackbox error interline 21

my script:
void OnStart()
{
SetLocalVarInt("Var1", 0);

}
void leva(string &in asEntity, int LeverState)
{
if(GetLeverState("lever1")== -1 )
AddLocalVarInt("Var1", 1);
if(GetLeverState("lever2")== 1)
{
AddLocalVarInt("Var1",1);
}
}





void door(string &in asEntity)
{
if(GetLocalVarInt("Var1")>=1){
SetPropHealth(asEntity, 0);AddLocalVarInt("Var1",1);
GiveSanityBoost();
}

}
(This post was last modified: 03-14-2015, 01:58 PM by Casotime1999.)
03-14-2015, 01:57 PM
Find


Messages In This Thread
RE: Main game blackbox error interline 21 - by Casotime1999 - 03-14-2015, 01:57 PM



Users browsing this thread: 2 Guest(s)