Code: Select all
echo('set range', wrange)
Spring.SetUnitWeaponState(unitID, 0, {range = wrange})
echo ( 'range is ', Spring.GetUnitWeaponState(unitID, 0, 'range') )
Moderator: Moderators
Code: Select all
echo('set range', wrange)
Spring.SetUnitWeaponState(unitID, 0, {range = wrange})
echo ( 'range is ', Spring.GetUnitWeaponState(unitID, 0, 'range') )
I was reasonably sure that weapons start at 0 myself but, I may well be mistaken.jK wrote:incorrect weaponnum?
And I used 0 as you can see. And for sanity's sake I tried changing both 0's to 1's.CarRepairer wrote:single weapon
but actually had to use reloadTime to get it working (captial T)http://springrts.com/wiki/The_Talking_Changelog wrote: StateTable is a table containing one or more of reloadstate, reloadtime (this time in seconds),
accuracy, sprayangle, range, projectilespeed.