How to make a memo appear on item pickup? - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: How to make a memo appear on item pickup? (/thread-10828.html) |
How to make a memo appear on item pickup? - MissMarilynn - 10-18-2011 How do I make a memo appear (or memento or whatever it is called) after I pick up and read through a letter? How do I make a monster appear after picking up an item such as a key? Also: How can you make a sound like a monster growling without the monster appearing when you pick up an item? Thank you! RE: How to make a memo appear on item pickup? - Russ Money - 10-18-2011 Study this: http://wiki.frictionalgames.com/hpl2/amnesia/script_functions The function you're looking for would be: Code: SetEntityPlayerInteractCallback(string& asName, string& asCallback, bool abRemoveOnInteraction); string& asName would be the name of the object interacted. string& asCallback would be the name of the function you want to call (Make a monster spawn, play a sound, etc.) bool abRemoveOnInteraction is either true or false. It's asking if you want to remove the effect of the interaction on the object. edit: http://www.youtube.com/watch?v=WfgFEG4TSCE RE: How to make a memo appear on item pickup? - MissMarilynn - 10-20-2011 (10-18-2011, 05:42 AM)Russ Money Wrote: Study this: http://wiki.frictionalgames.com/hpl2/amnesia/script_functionsAre you sure it isn't AddEntityCollideCallback(string& asParentName, string& asChildName, string& asFunction, bool abDeleteOnCollide, int alStates); RE: How to make a memo appear on item pickup? - Elven - 10-20-2011 No. AddEntityCollide is when 2 things collide. Player or area. Picking up item is picking it up, not colliding with it . Code: void SetEntityCallbackFunc(string& asName, string& asCallback); RE: How to make a memo appear on item pickup? - MissMarilynn - 10-20-2011 (10-20-2011, 07:27 PM)Elven Wrote: No. AddEntityCollide is when 2 things collide. Player or area. Picking up item is picking it up, not colliding with it .*facepalm* I feel stupid |