That I did not catch. I have always been using this method, also for radius of a blast or something like that. The sh native ask for the pcvars and reads the values:
Code:
/**
* Sets hero's max Health and Armor. (Optional)
* Health and Armor do not stack, values from heroes are compared and greatest is applied.
*
* @note If you only want to set one of the values, set the other to 0 or underscore "_" to use the default set value of 0.
*
* @param heroID The index of the hero.
* @param pcvarHealth The pcvar value for maximum Health CVAR for the hero, CVAR values below 100 are ignored.
* @param pcvarArmor The pcvar value for maximum Armor CVAR for the hero.
* @noreturn
*/
native sh_set_hero_hpap(heroID, pcvarHealth = 0, pcvarArmor = 0);
__________________