(01-24-2014, 10:42 PM)Romulator Wrote: (01-24-2014, 10:35 PM)FlawlessHair Wrote: void Puzzle (string &in asEntity, int LeverState
{
if(GetLeverState("Lever1") == -1
&& GetLeverState("Lever2" ) == 1)
&& GetLeverState("Lever3" ) == -1
&& GetLeverState("Lever4" ) == -1
}
Also missing a ) after the void's syntax.
I'm getting another error I'm not sure why! the code looks fine to me now but the game doesn't agree
void Puzzle (string &in asEntity, int LeverState)
{
if(GetLeverState("Lever1") == -1
&& GetLeverState("Lever2" ) == 1)
&& GetLeverState("Lever3" ) == -1
&& GetLeverState("Lever4" ) == -1
}
{ void UnlockDoor(string &in asEntity, int LeverState)
SetSwingDoorLocked("Door", false, true);
PlaySoundAtEntity("", "door_safety_open.ogg", "Door", 0, false);
}