FANDOM



CPU_RemoveSobGroup(<iPlayerIndex>, <sSobGroupName>)
Description
Removes the sobgroup <sSobGroupName> belonging to the CPU player <iPlayerIndex> from AI control.
This makes it possible to issue scripted orders to a sobgroup without the AI overriding them, and without having call the CPU_Enable function.
Note: to restore AI control over a sobgroup, use the CPU_AddSobGroup function.
Example
CPU_RemoveSobGroup(1, "V_Shipyard_Att_Bomb")
Arguments
<iPlayerIndex>: the index number of a CPU player.
<sSobGroupName>: the name of the sobgroup.
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.