GetUnitGoldCost

Parameters
unitid integer

Rawcode to specify unit type

bug

Crashes the game for hero ids (tested in a normal script).

comment

Gets the gold cost of a unit-type.

common.ai native
To use this native you have to declare it in your script.
patch

1.00

return type
integer
Source code
native GetUnitGoldCost      takes integer unitid                        returns integer
Source
common.ai