(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
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.