SC2Mapster.com Wiki

SC2 API / Functions / Aiharvest Bonus

AIHarvestBonus

void AIHarvestBonus(int player, fixed bonus)

Multiplies all incoming resources of a player.

Parameters

int player

The player that needs to get modified resources.

fixed bonus

The factor all incoming resources are multiplied with.

Examples

Example: Insane AI code
if (PlayerDifficulty(player) >= 5) {
        AIHarvestBonus(player, 2.0);
    }

You must login to post a comment. Don't have an account? Register to get one!

Facts

Date created
Aug 11, 2010
Last updated
Aug 11, 2010

Author