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
case 6: ?
X4anco Offline
Member

Posts: 157
Threads: 66
Joined: Apr 2011
Reputation: 0
#1
Bug  case 6: ?

Hello peoples, Smile

I was looking through some scripts of the original Amnesia levels and I came across this
break;
case 6:
(Map: 00_rainy_hall.map Line: 1069)

And I have no idea what it does Angry can you please explain to me?
Put it simply as I am simple Big Grin .

...
08-05-2011, 12:49 PM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#2
RE: case 6: ?

It's a switch case statement.
What it simply does is checking variable and if it's 6, do what case 6 says.
http://www.cplusplus.com/doc/tutorial/control/

(This post was last modified: 08-05-2011, 12:53 PM by Tanshaydar.)
08-05-2011, 12:52 PM
Website Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#3
RE: case 6: ?

It's a part of a "switch".

http://wiki.frictionalgames.com/hpl2/tut.../sequences

If you scroll down, you'll see a switch. Also look it up on the search bar located near the bottom of the Frictional Games Forum page of Custom Stories & Modifications. Smile


Edit: Ninja'd! xD

(This post was last modified: 08-05-2011, 12:54 PM by Kyle.)
08-05-2011, 12:54 PM
Find




Users browsing this thread: 1 Guest(s)