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
#2
RE: Multiple problems

Lever:
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?
}

If there was some way to reset the levers to state 0, that would be good to add.


Looking:
if(alState == -1); // not looking
else if (alState == 1); // looking

Example:
void lookat1(string &in entity, string &in type)
{
if(alState == -1); // not looking
else if (alState == 1) SetMessage("Message", "look1", 2); // looking
}

Not sure of the lever stuff. Almost sure something is wrong there.

[Image: mZiYnxe.png]


(This post was last modified: 05-18-2011, 05:40 PM by Acies.)
05-18-2011, 05:29 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)