Frictional Games Forum (read-only)

Full Version: Activating Monsters/Entities
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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..
In order...
SetEntityActive (SetEntityPlayerInteractCallback to call it)
SetPropHealth (AddEntityCollideCallback to call it)
GiveSanityDamage
StartPlayerLookAt
SetPropHealth (SetEntityPlayerInteractCallback to call it)

http://wiki.frictionalgames.com/hpl2/amn..._functions
^ Is your best friend while scripting.
lol thanks alot mate!
oh but hey, do i have to write some callbacks ingame ? like for the monsters' call back?
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.