GetUnitGoldCost
- Parameters
-
unitid integer
Rawcode to specify unit type
- comment
Gets the gold cost of a unit-type.
- bug
Crashes the game for hero ids (tested in a normal script).
- common.ai native
- To use this native you have to declare it in your script.
- patch
1.00
- Source
- common.ai
- return type
integer
- Source code
native GetUnitGoldCost takes integer unitid returns integer