The player who the upgrade will be researched for.
The four digit rawcode ID of the upgrade.
The number of levels to add to the current research level of the upgrade.
In upgrades that have multiple levels, it will research the upgrade by the number of levels specified. (it adds the number of levels to the current research level, see
SetPlayerTechResearchedto set the research level)
- return type
- Source code
constant native AddPlayerTechResearched takes player whichPlayer, integer techid, integer levels returns nothing