Skip to content
LordMidas edited this page Nov 18, 2022 · 1 revision

File path: scripts/config/msu/ai.nut

Functions related to AI.

addBehavior

::MSU.AI.addBehavior( _id, _name, _order, _score );
// _id and _name are strings
// _order is an integer
// _score is an integer or float

Convenience function to add _id to :Const.AI.Behavior.ID. Also creates keys in ::Const.AI.Behavior.Order and ::Const.AI.Behavior.Score with key _id and value _order and _score respectively. Adds _name to ::Const.AI.Behavior.Name. Throws MSU DuplicateKey exception if _id already exists in ::Const.AI.Behavior.ID.

Clone this wiki locally