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
[SOLVED]I screw up amnesia,
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#5
RE: I screw up amnesia,

(04-15-2015, 10:07 AM)Casotime1999 Wrote: it doesn't happen when i set the lever1 for example to 0 it fade in but if i set it to 1 or -1 it won't work. I'm so blind. And i tried this method:
void Puzzle(string &in asEntity, int LeverState)
{
if(GetLeverState("leva1") ==0
&& GetLeverState("leva2") == 1)SetPropHealth("door", 0);


}
and it doesn't do anything, i followed some tutorials, it still not working

I think that's because 0 is a very hard state to use. 0 is, if it hasn't been set to anything. And I think that only triggers if it hasn't been set ever, in that level. So if you made it 1, and then moved it back to the middle it'd still be 1.

Either use 1 or -1


(04-15-2015, 11:30 AM)(拉赫兰) Romulator Wrote: What exactly are you trying to do with your script?

If I understood it correctly, he wants to, when he moves a lever, to check if 2 levers are in specific places. If they are, do something.

Trying is the first step to success.
(This post was last modified: 04-15-2015, 12:32 PM by FlawlessHappiness.)
04-15-2015, 12:31 PM
Find


Messages In This Thread
[SOLVED]I screw up amnesia, - by Casotime1999 - 04-12-2015, 08:28 PM
RE: I screw up amnesia, - by FlawlessHappiness - 04-12-2015, 08:32 PM
RE: I screw up amnesia, - by Casotime1999 - 04-15-2015, 10:07 AM
RE: I screw up amnesia, - by FlawlessHappiness - 04-15-2015, 12:31 PM
RE: I screw up amnesia, - by Romulator - 04-15-2015, 11:30 AM
RE: I screw up amnesia, - by Romulator - 04-15-2015, 01:11 PM
RE: I screw up amnesia, - by FlawlessHappiness - 04-15-2015, 01:32 PM
RE: I screw up amnesia, - by Casotime1999 - 04-15-2015, 09:59 PM
RE: I screw up amnesia, - by FlawlessHappiness - 04-15-2015, 11:06 PM



Users browsing this thread: 2 Guest(s)