Function; CPU_AddDefendTarget - HWRM/KarosGraveyard GitHub Wiki

CPU_AddDefendTarget(<iPlayerIndex>, <sVolumeName>, <fPriority>)

Description

Tells a CPU player to defend <sVolumeName> and sets the priority level of that task.
Returns an index number of the target.

Example

CPU_AddDefendTarget(3, "Vol_InPosition", 500)

Arguments

<iPlayerIndex>: the index number of the CPU player.
<sVolumeName>: the name of the volume.
<fPriority>: float or integer, the priority level (the higher, the more important for the CPU).

Related Pages

Function Reference

Comments

Page Status

Updated Formatting? Initial
Updated for HWRM? Initial

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