Function; CPU_SetDefendTargetRadius - HWRM/KarosGraveyard GitHub Wiki

CPU_SetDefendTargetRadius(<iPlayerIndex>, <iTargetIndex>, <fDistance>)

Description

Sets the distance within which to defend the target. In other words, the CPU will attack any enemy coming into the set range.

Example

CPU_SetDefendTargetRadius(1, DefendMakaanCPU1, 8000)

Arguments

<iPlayerIndex>: the index number of the CPU player.
<iTargetIndex>: the index number of the target. This value is returned by CPU_AddDefendSobGroup() and other functions.
<fDistance>: float, a distance radius.

Related Pages

CPU_AddDefendSobGroup()

Function Reference

Comments

Page Status

Updated Formatting? Initial
Updated for HWRM? Initial

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