Function; CPU_Enable - HWRM/KarosGraveyard GitHub Wiki

CPU_Enable(<iPlayerIndex>, <bEnable>)

Description

Enables/disables the AI for a CPU player.
Disabling the AI makes it possible to issue scripted orders to the CPU player without the AI overriding them.
Note: the CPU squadrons' behavior in combat is unaffected by this setting.

Example

CPU_Enable(1, 0)

Arguments

<iPlayerIndex>: the index number of the CPU player.
<bEnable>: enable/disable AI (0 = disable, 1 = enable).

Related Pages

Function Reference

Comments

Page Status

Updated Formatting? Initial
Updated for HWRM? Initial

⚠️ **GitHub.com Fallback** ⚠️