AI (functions)

From PMDOWiki
Revision as of 17:54, 24 November 2025 by Imbion (talk | contribs) (Created page with "The AI functions involve controlling the AI of actors on a ground map. It controls features such as characters walking around idly, or following the player. == SetCharacterAI == This function gives the argument character the assigned AI. === Arguments === Argument order is <code>AI:SetCharacterAI(chara, AI)</code>. {| class="wikitable" |- ! Name !! Type !! Purpose |- | chara || RogueEssence.Ground.GroundChar || The character to apply the AI to. |- | AI || System.Obj...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The AI functions involve controlling the AI of actors on a ground map. It controls features such as characters walking around idly, or following the player.

SetCharacterAI

This function gives the argument character the assigned AI.

Arguments

Argument order is AI:SetCharacterAI(chara, AI).

Name Type Purpose
chara RogueEssence.Ground.GroundChar The character to apply the AI to.
AI System.Object[] The AI to apply.

Usage

(todo)

DisableCharacterAI

Disables the AI processing of the ground character until it is re-enabled.

Arguments

Argument order is AI:DisableCharacterAI(chara, AI).

Name Type Purpose
chara RogueEssence.Ground.GroundChar The character to disable the AI of.

Usage

(todo)

EnableCharacterAI

If the character's AI was disabled with AI:DisableCharacterAI re-enables it.

Arguments

Argument order is AI:EnableCharacterAI(chara, AI).

Name Type Purpose
chara RogueEssence.Ground.GroundChar The character to enable the AI of.

Usage

(todo)

SetAIState

? (not documented correctly)

Arguments

(todo)

Usage

(todo)