native BlzGetUnitWeaponRealField takes unit whichUnit, unitweaponrealfield whichField, integer index returns real
or with an upgrade.native SetUnitAcquireRange takes unit whichUnit, real newAcquireRange returns nothing
.As far as I know, we can change a unit's range by changing its unitweaponrealfield named UNIT_WEAPON_RF_ATTACK_RANGE and the nativenative BlzGetUnitWeaponRealField takes unit whichUnit, unitweaponrealfield whichField, integer index returns real
that is really weird, bc you can do it easily in GUI.But I can't find anything in the entire common.j related to sight radius.
I just meant that if you set something to 'usir' of a unit it will automatically switch between 'usin' and 'usil' according to the time of day... no complex calculations needed. Initially I assumed that setting something to the 'usir' of a unit just set it to the current sight radius, and afterwards when time of day changed - the sight radius would remain as the previous value.how both values would be calculated out of asir.