Giving an NPC Memory: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (minoro) |
||
Line 1: | Line 1: | ||
{{ | {{npc tut}} | ||
Memory bits (such as <code>bits_MEMORY_HAD_ENEMY</code>) allow [[NPC]]s to be more responsive during task execution. | |||
== Related functions == | |||
*<code>int CAI_SchedulesManager::GetMemoryID(const char *state_name)</code> | |||
==Related | :Modify these 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> | |||
*<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> | ||
Line 11: | Line 11: | ||
*<code>inline bool CAI_BaseNPC::HasAllMemories( int iMemory )</code> | *<code>inline bool CAI_BaseNPC::HasAllMemories( int iMemory )</code> | ||
==See | == 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 05:16, 3 December 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 )