Skip to content

Function; CPU_SetAttackTargetPriority

Cloaked edited this page Jun 10, 2020 · 1 revision

CPU_SetAttackTargetPriority(<iPlayerIndex>, <iAttackGroup>, <iAttackPriority>)

Description

Presumably sets the priority level of a certain type of enemy ships.

Example

CPU_SetAttackTargetPriority(2, TT_MotherShip, 50)

Arguments

<iPlayerIndex>: the index number of a CPU player.
<iAttackGroup>: the index number (or variable) of the attack group. TT_MotherShip, TT_Refinery and TT_Builder variables can be found in the AI dumps. They presumably correspond to the class definitions of the AI files.
<iAttackPriority>: the attack priority value.

Related Pages

Function Reference

Comments

Page Status

Updated Formatting? Initial
Updated for HWRM? Initial

Clone this wiki locally