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] An event after reading a note
Robby Offline
Posting Freak

Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation: 47
#3
RE: An event after reading a note

(09-07-2012, 04:46 PM)Kiwi2703 Wrote: I have a simple question (I somehow couldn't find the answer anywhere..) - How to make certain events happen after reading a note? Player interaction callback doesn't work :/ Thanks in advance Smile
In the Level Editor, select the note that you chose, click the "Entity" tab, then there is "PlayerInteractCallback". Enter "Note_Event" (for example, and without quotes).

In the script file, use the syntax
void Note_Event(string &in asEntity)
{
    (YOUR EVENT)
}

If this won't work, I don't know what will. Are you sure that the names are correct? Is the syntax (mentioned in code) correct?

If you had the map open in Amnesia while 'creating' the script file (not editing it, like creating the hps file after you loaded the map up), exit Amnesia, then start it back up.

EDIT: beecake got here sooner.

Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
(This post was last modified: 09-07-2012, 05:02 PM by Robby.)
09-07-2012, 04:57 PM
Website Find


Messages In This Thread
RE: An event after reading a note - by Robby - 09-07-2012, 04:57 PM
RE: An event after reading a note - by Kiwi2703 - 09-07-2012, 05:06 PM
RE: An event after reading a note - by Steve - 09-07-2012, 05:05 PM
RE: An event after reading a note - by Robby - 09-07-2012, 05:10 PM



Users browsing this thread: 1 Guest(s)