GetResourceAmount
- Parameters
-
whichUnit unit
Add gold to this gold mine unit.
- comment
Returns the amount of available gold in a gold mine. The amount can be negative, which is practically the same as 0.
- note
See
SetResourceAmount
for edge-case descriptions. Also:SetResourceAmount
,AddResourceAmount
.- return type
integer
- Source code
native GetResourceAmount takes unit whichUnit returns integer
- Source
- unit.j
- wc3modding.com
- GetResourceAmount