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 (raise an issue to discuss on Github or submit a PR)
return type
integer
Source code
native GetUnitGoldCost      takes integer unitid                        returns integer