Giving an NPC Memory: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
{{stub}}
{{npc tut}}
{{npc tut}}
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.

Revision as of 19:49, 19 October 2007

Stub

This article or section is a stub. You can help by expanding it.


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