KAI_Humanoid - inkoalawetrust/KAI GitHub Wiki
KAI_Humanoid
Parent class: KAI_Creature
Description
This is the base class for NPCs that are more intelligent than creature NPCs. For example, a simple, animalistic monster can be based on KAI_Creature, while a more intelligent, elite monster, with tactics like knowing when to back off, working in groups, or dodging projectiles is based on KAI_Humanoid. Despite the class name, this is not strictly limited to human or humanoid NPCs. Humanoid NPCs are also the only ones that can use emplacements.
Variables
Emplacement
Type: KAI_Emplacement
A pointer to the emplacement that the NPC is currently on, if any. When an NPC is "on" an emplacement they're actually morphed. So to check what the NPC is doing now, check their Alternative pointer, which should hold a reference to the KAI_EmplacementNPC they morphed into.
Virtual functions
OnEmplacementEnter()
Called when the NPC enters an emplacement.
OnEmplacementExit()
Called when the NPC exits an emplacement.