Giving an NPC Memory: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (categorize)
Line 2: Line 2:
Memory bits (such as '''bits_MEMORY_HAD_ENEMY''') allow NPCs to be more responsive during task execution.
Memory bits (such as '''bits_MEMORY_HAD_ENEMY''') allow NPCs to be more responsive during task execution.
==Related Functions==
==Related Functions==
*<code>int CAI_SchedulesManager::GetMemoryID(const char *state_name)</code><br>Modify this functions if you need to create more memory bits that will be used in schedule definitions.
*<code>int CAI_SchedulesManager::GetMemoryID(const char *state_name)</code><br>Modify these functions if you need to create more memory bits that will be used in schedule definitions.
*<code>inline void CAI_BaseNPC::Remember( int iMemory )</code>
*<code>inline void CAI_BaseNPC::Remember( int iMemory )</code>
*<code>inline void CAI_BaseNPC::Forget( int iMemory )</code>
*<code>inline void CAI_BaseNPC::Forget( int iMemory )</code>
*<code>inline bool CAI_BaseNPC::HasMemory( int iMemory )</code>
*<code>inline bool CAI_BaseNPC::HasMemory( int iMemory )</code>
*<code>inline bool CAI_BaseNPC::HasAllMemories( int iMemory )</code>
*<code>inline bool CAI_BaseNPC::HasAllMemories( int iMemory )</code>
==See Also==
==See Also==
*[[List of memory bits]]
*[[List of memory bits]]
{{navbar|Defining the NPC|Creating an NPC|Creating a condition}}
{{navbar|Defining the NPC|Creating an NPC|Creating a condition}}
[[Category:AI Programming]]
[[Category:AI Programming]]

Revision as of 04:00, 3 October 2007

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