BlzSetUnitWeaponRealField

Parameters
whichUnitunit
whichFieldunitweaponrealfield
indexinteger
valuereal
comment

Problems: unitweaponfields UNIT_WEAPON_RF_ATTACK_RANGE and UNIT_WEAPON_RF_ATTACK_PROJECTILE_SPEED do not appear to change in value, even if the operation is reported successful (returns a false positive). This was tested at indices 0 - 3.

The getter equivalent of the native above does not work too (returns 0).

patch

1.31.0.11889

Source
common.j (raise an issue to discuss on Github or submit a PR)
return type
boolean
Source code
native BlzSetUnitWeaponRealField                   takes unit whichUnit, unitweaponrealfield whichField, integer index, real value returns boolean