-
Notifications
You must be signed in to change notification settings - Fork 3
LordMidas edited this page Nov 18, 2022
·
1 revision
File path: scripts/config/msu/ai.nut
Functions related to AI.
::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
.
- NOTE: MSU guarantees backwards compatibility for documented features and code only. Undocumented features/code of MSU may be changed at any time without notice, so we advise against using/referencing such code in your projects.
- For bug reports or feature requests, please create issues.
- If you would like to join the team, write to us at msu.team@protonmail.com.