# Unit Resources

Grammaru (current|Current/Default) resource amount
FlagsFunction

Returns the amount of resources a unit has.

# Arguments

Returns — int

int libNtve_gf_UnitGetPropertyResources(
	unit lp_u,
	bool lp_current,
);

Category: Unit / Properties

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L2881
libNtve_gf_UnitGetPropertyResources(autoBC161B9B_var, c_unitPropCurrent)
// L2881
libNtve_gf_UnitGetPropertyResources(autoBC161B9B_var, c_unitPropCurrent)
// L5637
libNtve_gf_UnitGetPropertyResources(UnitFromId(10), c_unitPropCurrent)
// L5638
libNtve_gf_UnitGetPropertyResources(UnitFromId(9), c_unitPropCurrent)
// L5639
libNtve_gf_UnitGetPropertyResources(UnitFromId(8), c_unitPropCurrent)
// L5640
libNtve_gf_UnitGetPropertyResources(UnitFromId(7), c_unitPropCurrent)
// L5641
libNtve_gf_UnitGetPropertyResources(UnitFromId(6), c_unitPropCurrent)
// L5642
libNtve_gf_UnitGetPropertyResources(UnitFromId(5), c_unitPropCurrent)
// L5643
libNtve_gf_UnitGetPropertyResources(UnitFromId(4), c_unitPropCurrent)
// L5644
libNtve_gf_UnitGetPropertyResources(UnitFromId(3), c_unitPropCurrent)
// L5647
libNtve_gf_UnitGetPropertyResources(UnitFromId(13), c_unitPropCurrent)
// L8355
libNtve_gf_UnitGetPropertyResources(auto04D6847B_var, c_unitPropCurrent)
// L8355
libNtve_gf_UnitGetPropertyResources(auto04D6847B_var, c_unitPropCurrent)
// L5637
libNtve_gf_UnitGetPropertyResources(UnitFromId(10), c_unitPropCurrent)
// L5638
libNtve_gf_UnitGetPropertyResources(UnitFromId(9), c_unitPropCurrent)
// L5639
libNtve_gf_UnitGetPropertyResources(UnitFromId(8), c_unitPropCurrent)
// L5640
libNtve_gf_UnitGetPropertyResources(UnitFromId(7), c_unitPropCurrent)
// L5641
libNtve_gf_UnitGetPropertyResources(UnitFromId(6), c_unitPropCurrent)
// L5642
libNtve_gf_UnitGetPropertyResources(UnitFromId(5), c_unitPropCurrent)
// L5643
libNtve_gf_UnitGetPropertyResources(UnitFromId(4), c_unitPropCurrent)
// L5644
libNtve_gf_UnitGetPropertyResources(UnitFromId(3), c_unitPropCurrent)
// L5647
libNtve_gf_UnitGetPropertyResources(UnitFromId(13), c_unitPropCurrent)
// L1720
libNtve_gf_UnitGetPropertyResources(auto27D91F20_var, c_unitPropCurrent)
// L1732
libNtve_gf_UnitGetPropertyResources(auto51A0BC80_var, c_unitPropCurrent)
// L4891
libNtve_gf_UnitGetPropertyResources(UnitFromId(4), c_unitPropCurrent)
// L4892
libNtve_gf_UnitGetPropertyResources(UnitFromId(6), c_unitPropCurrent)
// L4893
libNtve_gf_UnitGetPropertyResources(UnitFromId(7), c_unitPropCurrent)
// L4894
libNtve_gf_UnitGetPropertyResources(UnitFromId(5), c_unitPropCurrent)
// L4895
libNtve_gf_UnitGetPropertyResources(UnitFromId(2), c_unitPropCurrent)
// L4896
libNtve_gf_UnitGetPropertyResources(UnitFromId(9), c_unitPropCurrent)
// L4897
libNtve_gf_UnitGetPropertyResources(UnitFromId(3), c_unitPropCurrent)
// L4898
libNtve_gf_UnitGetPropertyResources(UnitFromId(8), c_unitPropCurrent)
// L4900
libNtve_gf_UnitGetPropertyResources(UnitFromId(459), c_unitPropCurrent)
// L1720
libNtve_gf_UnitGetPropertyResources(auto27D91F20_var, c_unitPropCurrent)
// L1732
libNtve_gf_UnitGetPropertyResources(auto51A0BC80_var, c_unitPropCurrent)
// L4891
libNtve_gf_UnitGetPropertyResources(UnitFromId(4), c_unitPropCurrent)
// L4892
libNtve_gf_UnitGetPropertyResources(UnitFromId(6), c_unitPropCurrent)
// L4893
libNtve_gf_UnitGetPropertyResources(UnitFromId(7), c_unitPropCurrent)
// L4894
libNtve_gf_UnitGetPropertyResources(UnitFromId(5), c_unitPropCurrent)
// L4895
libNtve_gf_UnitGetPropertyResources(UnitFromId(2), c_unitPropCurrent)
// L4896
libNtve_gf_UnitGetPropertyResources(UnitFromId(9), c_unitPropCurrent)
// L4897
libNtve_gf_UnitGetPropertyResources(UnitFromId(3), c_unitPropCurrent)
// L4898
libNtve_gf_UnitGetPropertyResources(UnitFromId(8), c_unitPropCurrent)
// L4900
libNtve_gf_UnitGetPropertyResources(UnitFromId(459), c_unitPropCurrent)
// L5323
libNtve_gf_UnitGetPropertyResources(UnitFromId(65), c_unitPropCurrent)
// L5324
libNtve_gf_UnitGetPropertyResources(UnitFromId(68), c_unitPropCurrent)
// L5325
libNtve_gf_UnitGetPropertyResources(UnitFromId(67), c_unitPropCurrent)
// L5326
libNtve_gf_UnitGetPropertyResources(UnitFromId(66), c_unitPropCurrent)
// L5327
libNtve_gf_UnitGetPropertyResources(UnitFromId(292), c_unitPropCurrent)
// L9149
libNtve_gf_UnitGetPropertyResources(UnitFromId(17), c_unitPropCurrent)
// L9150
libNtve_gf_UnitGetPropertyResources(UnitFromId(286), c_unitPropCurrent)
// L9151
libNtve_gf_UnitGetPropertyResources(UnitFromId(246), c_unitPropCurrent)
// L9152
libNtve_gf_UnitGetPropertyResources(UnitFromId(378), c_unitPropCurrent)
// L9153
libNtve_gf_UnitGetPropertyResources(UnitFromId(382), c_unitPropCurrent)
// L9154
libNtve_gf_UnitGetPropertyResources(UnitFromId(287), c_unitPropCurrent)
// L9155
libNtve_gf_UnitGetPropertyResources(UnitFromId(383), c_unitPropCurrent)
// L9157
libNtve_gf_UnitGetPropertyResources(UnitFromId(379), c_unitPropCurrent)
// L9944
libNtve_gf_UnitGetPropertyResources(UnitFromId(8), c_unitPropCurrent)
// L9945
libNtve_gf_UnitGetPropertyResources(UnitFromId(7), c_unitPropCurrent)
// L9946
libNtve_gf_UnitGetPropertyResources(UnitFromId(6), c_unitPropCurrent)
// L9947
libNtve_gf_UnitGetPropertyResources(UnitFromId(5), c_unitPropCurrent)
// L9948
libNtve_gf_UnitGetPropertyResources(UnitFromId(4), c_unitPropCurrent)
// L9949
libNtve_gf_UnitGetPropertyResources(UnitFromId(3), c_unitPropCurrent)
// L9950
libNtve_gf_UnitGetPropertyResources(UnitFromId(2), c_unitPropCurrent)
// L9951
libNtve_gf_UnitGetPropertyResources(UnitFromId(1), c_unitPropCurrent)
// L9953
libNtve_gf_UnitGetPropertyResources(UnitFromId(9), c_unitPropCurrent)
// L5323
libNtve_gf_UnitGetPropertyResources(UnitFromId(65), c_unitPropCurrent)
// L5324
libNtve_gf_UnitGetPropertyResources(UnitFromId(68), c_unitPropCurrent)
// L5325
libNtve_gf_UnitGetPropertyResources(UnitFromId(67), c_unitPropCurrent)
// L5326
libNtve_gf_UnitGetPropertyResources(UnitFromId(66), c_unitPropCurrent)
// L5327
libNtve_gf_UnitGetPropertyResources(UnitFromId(292), c_unitPropCurrent)
// L9149
libNtve_gf_UnitGetPropertyResources(UnitFromId(17), c_unitPropCurrent)
// L9150
libNtve_gf_UnitGetPropertyResources(UnitFromId(286), c_unitPropCurrent)
// L9151
libNtve_gf_UnitGetPropertyResources(UnitFromId(246), c_unitPropCurrent)
// L9152
libNtve_gf_UnitGetPropertyResources(UnitFromId(378), c_unitPropCurrent)
// L9153
libNtve_gf_UnitGetPropertyResources(UnitFromId(382), c_unitPropCurrent)
// L9154
libNtve_gf_UnitGetPropertyResources(UnitFromId(287), c_unitPropCurrent)
// L9155
libNtve_gf_UnitGetPropertyResources(UnitFromId(383), c_unitPropCurrent)
// L9157
libNtve_gf_UnitGetPropertyResources(UnitFromId(379), c_unitPropCurrent)
// L9944
libNtve_gf_UnitGetPropertyResources(UnitFromId(8), c_unitPropCurrent)
// L9945
libNtve_gf_UnitGetPropertyResources(UnitFromId(7), c_unitPropCurrent)
// L9946
libNtve_gf_UnitGetPropertyResources(UnitFromId(6), c_unitPropCurrent)
// L9947
libNtve_gf_UnitGetPropertyResources(UnitFromId(5), c_unitPropCurrent)
// L9948
libNtve_gf_UnitGetPropertyResources(UnitFromId(4), c_unitPropCurrent)
// L9949
libNtve_gf_UnitGetPropertyResources(UnitFromId(3), c_unitPropCurrent)
// L9950
libNtve_gf_UnitGetPropertyResources(UnitFromId(2), c_unitPropCurrent)
// L9951
libNtve_gf_UnitGetPropertyResources(UnitFromId(1), c_unitPropCurrent)
// L9953
libNtve_gf_UnitGetPropertyResources(UnitFromId(9), c_unitPropCurrent)

# mods/starcoop/starcoop.sc2mod

LibCOMU.galaxy

// L6642
libNtve_gf_UnitGetPropertyResources(lv_indexResource, c_unitPropCurrent)
// L6669
libNtve_gf_UnitGetPropertyResources(lv_indexResource, c_unitPropCurrent)
// L9031
libNtve_gf_UnitGetPropertyResources(lv_indexResource, c_unitPropCurrent)
// L9039
libNtve_gf_UnitGetPropertyResources(lv_indexResource, c_unitPropCurrent)