Frictional Games Forum (read-only)
Activating Monsters/Entities - 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: Activating Monsters/Entities (/thread-10721.html)



Activating Monsters/Entities - GhastDagger - 10-12-2011

Hey guys, i need a couple of monsters and a corpse to appear after the player picks up an item, and make a Vase break when the player gets near it, and also the scare effect (the 1 that makes the camera get pushed or somethin) plus making him look at a direction for a couple of seconds

Would you kindly tell me the scripts and callbacks i'll need to make these things ? also is it possible to make a window break after the player picks the item ?

sorry for asking too much..



RE: Activating Monsters/Entities - Obliviator27 - 10-12-2011

In order...
SetEntityActive (SetEntityPlayerInteractCallback to call it)
SetPropHealth (AddEntityCollideCallback to call it)
GiveSanityDamage
StartPlayerLookAt
SetPropHealth (SetEntityPlayerInteractCallback to call it)

http://wiki.frictionalgames.com/hpl2/amnesia/script_functions
^ Is your best friend while scripting.



RE: Activating Monsters/Entities - GhastDagger - 10-12-2011

lol thanks alot mate!
oh but hey, do i have to write some callbacks ingame ? like for the monsters' call back?



RE: Activating Monsters/Entities - Obliviator27 - 10-12-2011

If you set the monster to active, he'll just stand there. If you want him to move, include AddEnemyPatrolNode into the callback that activates him, and be sure to have pathnodes set up.