SC2Mapster.com Wiki

AIClearStock

native void AIClearStock (int player);

Remove everything from the stock

Parameters

int player

Player number

Examples

Example: Protoss Build
void ProtossOpenGnd0 (int player) {
    // Remove everything from the stock
    AIClearStock(player);

    // Add things to the stock
    AISetStock( player, 1, c_PB_Nexus );
    AISetStock( player, 8, c_PU_Probe );
    AISetStock( player, 1, c_PB_Pylon );
    
    // around 100 resources in about 2 units
    AISetStock( player, 1, c_PU_Zealot );
    ProtossTechUp(player, 1);
}

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

Facts

Date created
Mar 05, 2010
Last updated
Mar 05, 2010

Author