Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple problems
Acies Offline
Posting Freak

Posts: 1,643
Threads: 60
Joined: Feb 2011
Reputation: 73
#6
RE: Multiple problems

Spoiler below!

Entity tab on your lever --> ConnectionStateChangeCallback --> "PullLever1"

void PullLever1(string &in EntityName, int alState)
{
if(alState == -1) && GetLocalVarInt("LeverX")==0) // Correct pull
{
SetLeverStuckState("LeverName", asalState, false);
AddLocalVarInt("LeverX", 1);
PlayGuiSound("CorrectSound", 0.8f);
return;
}
else if (alState == 1) && GetLocalVarInt("LeverX")==0) // Correct pull
{
SetLeverStuckState("LeverName", asalState, false);
AddLocalVarInt("LeverX", 1);
PlayGuiSound("CorrectSound", 0.8f);
return;
}
else
SetLocalVarInt("LeverX", 0);
PlayGuiSound("WrongSound", 0.8f);
//Reset levers to state 0?
}
}


However, there is more work to the script. It doesn't work as it is.

[Image: mZiYnxe.png]


(This post was last modified: 05-18-2011, 06:09 PM by Acies.)
05-18-2011, 06:08 PM
Find


Messages In This Thread
Multiple problems - by X4anco - 05-18-2011, 04:42 PM
RE: Multiple problems - by Acies - 05-18-2011, 05:29 PM
RE: Multiple problems - by X4anco - 05-18-2011, 05:32 PM
RE: Multiple problems - by Acies - 05-18-2011, 05:57 PM
RE: Multiple problems - by X4anco - 05-18-2011, 06:03 PM
RE: Multiple problems - by Acies - 05-18-2011, 06:08 PM
RE: Multiple problems - by X4anco - 05-18-2011, 06:15 PM
RE: Multiple problems - by Acies - 05-18-2011, 06:18 PM
RE: Multiple problems - by X4anco - 05-18-2011, 06:28 PM
RE: Multiple problems - by Acies - 05-18-2011, 08:21 PM
RE: Multiple problems - by X4anco - 05-18-2011, 09:02 PM



Users browsing this thread: 1 Guest(s)