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
Script Help 1 error which I can't solve/find?!
ingedoom Offline
Member

Posts: 120
Threads: 12
Joined: Feb 2012
Reputation: 0
#2
RE: 1 error which I can't solve/find?!

Could this be it? Seems like you misplaced your parenthesis.

if(GetLeverState("Lever1") == -1
&& GetLeverState("Lever2" ) == 1)
&& GetLeverState("Lever3" ) == -1
&& GetLeverState("Lever4" ) == -1

edit: also the puzzle function does not seem to have a closing bracket.
edit:

void Puzzle (string &in asEntity, int LeverState)
{
if(GetLeverState("Lever1") == -1
&& GetLeverState("Lever2" ) == 1
&& GetLeverState("Lever3" ) == -1
&& GetLeverState("Lever4" ) == -1)

{
UnlockDoor(string &in asEntity, int LeverState);
}

else
{ SetSwingDoorLocked("Door", false, true);
PlaySoundAtEntity("", "door_safety_open.ogg", "Door", 0, false);
}
}

I think that should do it.

[Image: 23778.png]
(This post was last modified: 01-24-2014, 08:49 PM by ingedoom.)
01-24-2014, 08:39 PM
Website Find


Messages In This Thread
RE: 1 error which I can't solve/find?! - by ingedoom - 01-24-2014, 08:39 PM



Users browsing this thread: 1 Guest(s)