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
Triggering Sounds & Sanity Damage?
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#2
RE: Triggering Sounds & Sanity Damage?

In my experience, scripting for Amnesia is very case sensitive. Turn onenter() into OnEnter() and onstart() to OnStart(). Also, your callback in the use-item function is UsedKeyOnDoor, while the function that does all the good stuff is called MyFunc. Make them match.

@ P.S. - Use SetMessage(textCat, textEntry, floatTime); You'll have to create your own category and entry in the lang file. Personally I use a category named General and label each entry according to which zone it occurs in, and what it pertains to.

@ P.S.S. - For the text entry, put something like MyLevelDoor. Then in your .lang file create a category named LevelDoors, if you haven't already. Name your entry simply: MyLevelDoor. Done!

(This post was last modified: 06-23-2011, 11:47 PM by palistov.)
06-23-2011, 11:44 PM
Find


Messages In This Thread
RE: Triggering Sounds & Sanity Damage? - by palistov - 06-23-2011, 11:44 PM



Users browsing this thread: 1 Guest(s)