Giving an NPC Memory: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (categorize) |
||
Line 10: | Line 10: | ||
*[[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]] |
Revision as of 23:57, 17 June 2006
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 this 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 )