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
Need some help with scripting... new to AMNESIA'S scripting...
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#4
RE: Need some help with scripting... new to AMNESIA'S scripting...

(07-29-2012, 08:09 AM)xResorx Wrote: Yes its one map.

Those brackets were to show a repeated line of code. Because im on a phone and the script extended pretty far. (It was the same line, just different lamps)

So I guess those dividers made out of "/" that the game makers used were just to organize?

What if I go about adding in more stuff? Would it need to be positioned a certain way, or is it just slap it in after the other scripts?
The "//" (which has to be a minimum of two slashes, but there's no limit) makes the subsequent text (on that same line) "invisible", so to speak. If you're using notepad++ and set it to the C++ language, the text will turn green. It's ideal for organizing and keeping track of what functions do what.

As far as adding more stuff goes, it's pretty straightforward; just make sure that you only have 1 OnStart, OnEnter, and OnLeave. If you have multiple callbacks, put them all under "void OnStart()" (there are a few exceptions as to when you would put callbacks under OnEnter, but it's so rare I won't go into that).

I rate it 3 memes.
07-29-2012, 08:25 AM
Find


Messages In This Thread
RE: Need some help with scripting... new to AMNESIA'S scripting... - by Adny - 07-29-2012, 08:25 AM



Users browsing this thread: 1 Guest(s)