# Resource Requested Amount

Grammar — Total resourceType requested
FlagsNative | Function

# Arguments

Returns — int

native int EventResourceRequestAmount(int resourceIndex);

# Supported triggers

Category: UI / Game UI

# Examples

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:33070

    }

    if ((EventResourceRequestAmount(c_resourceTypeMinerals) == 0)) {
        libCOMI_gf_CM_CommanderVOSend(libCOOC_gf_CC_PlayerAlly(EventPlayer()), libCOOC_gf_CC_CommanderVOLine(libCOOC_gf_ActiveCommanderForPlayer(EventPlayer()), libCOOC_ge_CC_CommanderVOLines_CC_CommanderVOVespeneRequested), PlayerGroupSingle(libCOOC_gf_CC_PlayerAlly(EventPlayer())));
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:33073

        libCOMI_gf_CM_CommanderVOSend(libCOOC_gf_CC_PlayerAlly(EventPlayer()), libCOOC_gf_CC_CommanderVOLine(libCOOC_gf_ActiveCommanderForPlayer(EventPlayer()), libCOOC_ge_CC_CommanderVOLines_CC_CommanderVOVespeneRequested), PlayerGroupSingle(libCOOC_gf_CC_PlayerAlly(EventPlayer())));
    }
    else if ((EventResourceRequestAmount(c_resourceTypeVespene) == 0)) {
        libCOMI_gf_CM_CommanderVOSend(libCOOC_gf_CC_PlayerAlly(EventPlayer()), libCOOC_gf_CC_CommanderVOLine(libCOOC_gf_ActiveCommanderForPlayer(EventPlayer()), libCOOC_ge_CC_CommanderVOLines_CC_CommanderVOMineralsRequested), PlayerGroupSingle(libCOOC_gf_CC_PlayerAlly(EventPlayer())));
    }