Difference between revisions of "HPL3/Amnesia: Rebirth/Tutorials/Ghouls"

From Frictional Wiki
Jump to navigation Jump to search
m (formatting)
m (formatting #2)
Line 9: Line 9:
 
== Scripting Setup ==
 
== Scripting Setup ==
  
If the required map prerequisites are fulfilled, your ghoul should be reactive to the player upon being activated in the map script.
+
If the required map prerequisites are fulfilled, your Ghoul should be reactive to the player upon being activated in the map script.
  
To give the ghoul additional behavior, set up and switch the ghoul into the appropriate mode and issue commands as desired.  
+
To give the Ghoul additional behavior, set up and switch the Ghoul into the appropriate mode and issue commands as desired.  
  
{{tip| More information on ghoul modes and commands can be found on the [[HPL3/Amnesia:_Rebirth/Scripting/Agents/Ghouls|Ghoul agent page]].}}
+
{{tip| More information on Ghoul modes and commands can be found on the [[HPL3/Amnesia:_Rebirth/Scripting/Agents/Ghouls|Ghoul agent page]].}}

Revision as of 12:21, 11 November 2020

This tutorial will go over the basic setup required to use a Ghoul agent. This tutorial assumes you have basic mapping and scripting knowledge.

Map Setup

First, make sure any agents placed in your map are set to be inactive. This ensures that, when later activated in your map script, the agent is successfully added to AgentBlackboard.

The agent requires path nodes to move around, so make sure your map is populated with plenty of nodes. You can use the PathNodeGenerator area type to easily generate a large amount of nodes automatically (make sure whatever surfaces you want to generate nodes on are inside the area), but you may still want to place nodes manually in areas with difficult or precise navigation.

Scripting Setup

If the required map prerequisites are fulfilled, your Ghoul should be reactive to the player upon being activated in the map script.

To give the Ghoul additional behavior, set up and switch the Ghoul into the appropriate mode and issue commands as desired.

Icon tip.png Tip: More information on Ghoul modes and commands can be found on the Ghoul agent page.