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 SOLVED - Levers Script
MsHannerBananer Offline
Member

Posts: 218
Threads: 34
Joined: Sep 2013
Reputation: 10
#8
RE: Levers Script

@Mudbill

It actually is intentional for the levers to be pulled and remain stuck after use. The idea is more complex than just arriving at a map and pulling them down to progress.

What actually happens is in a hub, there are 8 accessible area's, 7 of them have scripted events that simulate turning off the power. These events all set their own Global Variables to 1, and the switches related to them check for those. If their variable equals what it's supposed to, the switch's StaticState is supposed to be set to false, but for quicker testing, I didn't include this all in the script I'm currently trying to figure out.

Once all the switches are pulled into place, you're able to pull down the last main switch, which ultimately allows the player to progress.

I haven't tried it with the traditional Amnesia switches, however I do know that the imported switches do work with script. Big Grin I have several functions that really on the ConnnectionStateCallback and "if" statements to run PlaySound, SetPropStatic and other things.


@Romulator

It's not being mean at all! I know I suck with scripting, so I always look to find the simplest way around my problems, haha. I take any and all help I can get. I don't mind if the code is extensive, a lot of the code I have could be considered extensive anyway.

I never got to try doing things with global/local variables last night, so I'm going to try that before anything else. I'll edit this if I'm still having problems.

Thank you guys, you've saved my bacon sooooo many times.

(This post was last modified: 03-31-2014, 08:15 PM by MsHannerBananer.)
03-31-2014, 08:15 PM
Find


Messages In This Thread
SOLVED - Levers Script - by MsHannerBananer - 03-31-2014, 07:49 AM
RE: Levers Script - by Mudbill - 03-31-2014, 09:26 AM
RE: Levers Script - by MsHannerBananer - 03-31-2014, 10:41 AM
RE: Levers Script - by Romulator - 03-31-2014, 11:10 AM
RE: Levers Script - by Mudbill - 03-31-2014, 01:42 PM
RE: Levers Script - by Romulator - 03-31-2014, 02:03 PM
RE: Levers Script - by MsHannerBananer - 03-31-2014, 08:15 PM
RE: Levers Script - by Mudbill - 03-31-2014, 02:15 PM
RE: Levers Script - by Mudbill - 03-31-2014, 10:44 PM
RE: Levers Script - by MsHannerBananer - 04-01-2014, 12:04 AM
RE: Levers Script - by MsHannerBananer - 04-01-2014, 04:01 AM



Users browsing this thread: 1 Guest(s)