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
How to make more than 1 script?
Bridge Offline
Posting Freak

Posts: 1,971
Threads: 25
Joined: May 2012
Reputation: 128
#2
RE: How to make more than 1 script?

I don't really know anything about Amnesia scripting but presumably every declaration of OnEnter() must be followed by a declaration of OnLeave(), even if it's blank, right? That seems to be what the compiler is complaining about.

Is this the complete script? There is no reference to lv3.hps anywhere so I have no idea why it's mentioning that. Also that file path is really fucked up, are you sure it's correct?

Main (37, 2) is complaining about it being incomplete code I guess. Don't you need to return 0 or something?

EDIT: Actually I suppose you don't since I recall seeing a function called OnStart() on the wiki which returns type void. In that case, where is that function? Is this only an excerpt?
(This post was last modified: 06-02-2012, 11:45 PM by Bridge.)
06-02-2012, 11:42 PM
Find


Messages In This Thread
RE: How to make more than 1 script? - by Bridge - 06-02-2012, 11:42 PM
RE: How to make more than 1 script? - by palistov - 06-02-2012, 11:53 PM
RE: How to make more than 1 script? - by Bridge - 06-02-2012, 11:56 PM
RE: How to make more than 1 script? - by Putmalk - 06-03-2012, 06:52 AM



Users browsing this thread: 1 Guest(s)