Skip to content

Add ai.GetAll() #3150

@BREEDNKMs

Description

@BREEDNKMs

Description

g_AI_Manager.AccessAIs is used multiple times in order to iterate through NPCs whenever needed, but existing iterators are only for Players and All entities.

Whenever we create a custom AI, we require to iterate through all entities just to check for other NPCs such as relationships, state of other NPCs, NPCs close to a square etc...

Including the pre-existing AI table iterator will help us improve base AI performance with multiple AIs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Lua APIA request to add a new function.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions