Giving an NPC Memory

From Valve Developer Community
Revision as of 05:16, 3 December 2007 by Tourorist (talk | contribs) (minoro)
Jump to navigation Jump to search

Memory bits (such as bits_MEMORY_HAD_ENEMY) allow NPCs to be more responsive during task execution.

Related functions

  • int CAI_SchedulesManager::GetMemoryID(const char *state_name)
Modify these functions if you need to create more memory bits that will be used in schedule definitions.
  • inline void CAI_BaseNPC::Remember( int iMemory )
  • inline void CAI_BaseNPC::Forget( int iMemory )
  • inline bool CAI_BaseNPC::HasMemory( int iMemory )
  • inline bool CAI_BaseNPC::HasAllMemories( int iMemory )

See also