HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

changing the acquire range of a unit and it has no effect, help

10-03-2006, 03:48 PM#1
grupoapunte
Hi, im changing the acquire range of a unit and it has no effect, the attack range is higher than the acquire range so this way if i rise the acquire range the unit should have higher range, im not using long rifles upgrade because i need to be able to reduce the range again, this is part of the trigger, when a unit gets an item it sets the acquire range acording to the item

Collapse JASS:
if (GetItemType(it) == ITEM_TYPE_PERMANENT) then
        call SetUnitAcquireRange(u, I2R(udg_Atk_AdqRange[GetItemLevel(it)]))
        call DisplayTextToForce(udg_Players, I2S(udg_Atk_AdqRange[GetItemLevel(it)]))
        call DisplayTextToForce(udg_Players, R2S(GetUnitAcquireRange(u)))
    endif

The default acquire range is 100 and the range is 1000. The display lines are only there to verify that it its working, which does, but for example one of the items sets the acquire range to 500 but the unit is still acting as if it where 100

Thanks
10-03-2006, 03:51 PM#2
Captain Griffen
Cannot change the attack range in game like that. I have tried.
10-03-2006, 04:01 PM#3
grupoapunte
is there anyway to make it? switching units is not a good idea
10-03-2006, 06:18 PM#4
oNdizZ
why not? just a little extra work..
10-04-2006, 12:31 PM#5
zen87
easy, use the upgrade from rifle man, when you want to have longer range simply trigger the research level to higher level (note that you must have sufficent aquisition range and also make sure the unit is using that upgrade)
10-04-2006, 12:56 PM#6
Rising_Dusk
Upgrades are generally not pleasant to use, since they are irreversable and all workarounds to that irreversibility are sloppy.

'Chaos' is your friend.
I think the Headhunter -> Berserker skill works just as well too.
I'm also under the impression (Not sure) that the ability can be removed and it will go back to it's original state.