GetUnitGoldCost

Parameters
unitidinteger

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 (suggest an edit or discuss on Github)
return type
integer
Source code
native GetUnitGoldCost      takes integer unitid                        returns integer