• We'll be making a number of structural changes to the forums on Wednesday, 06.12.2023. No downtime is expected. Read more here.

Suggestion General Please expose/explain AI Behavior weight calculations

Users who are viewing this thread


Several modders (including myself) are interested in changing weapon prioritization methods and other AI-related behaviors. As far as we know, these methods that interpret the provided (very vaguely named) weights are contained within the engine binaries and are inaccessible to modders.

We are interested in knowing what the weights passed into this engine method actually do:
[EngineMethod("set_all_ai_behavior_params", false)]
void SetAllAIBehaviorParams(
  UIntPtr agentPointer,
  HumanAIComponent.BehaviorValues[] behaviorParams);

Ideally, it would be nice if everything AI-decision making related was exposed so we could have infantry prioritize spears over swords for example.
Top Bottom