FANDOM



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:


Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.