Skip to content

Expose all AiWander options to Lua, extend other packages as well

Right now I can set AI package options when starting an AI package but I can't see what values are set on an NPC by default nor can I simply read those options on the active package. I would like some way to get this via Lua, maybe it could be an AI interface function or a field on the player object or actor type.

My use case is I have a mod that alters NPC AI then restores their default package. Without knowing their default distance and duration for "Wander" for example I have to hardcode values which is suboptimal.