BAkil
New Member
- Reaction score
- 9
How do I make a unit immune to slow effects? Similar to Lycanthrope when he shapeshifts into wolf form.
Well there is a Speed Minimum field in the object editor,
@rotten: thats wrong.There is no way to set minimum movement speed for a single unit.
I think the way they do it in Dota is to give the Lycan (and his units) a huge number of Speed (like 1000000) when he's in his ultimate. That way you can slow him to 0.1% and he will still have 1000 speed.
Then the game intervenes with maximum move speed, set at 522 for dota, so the Wolf doesn't move any faster than that.
There is no way to set minimum movement speed for a single unit.
If you want your unit to be immune to all slow but not move at max speed allowed, and keep any other effects attached to the slows (damage etc.) that's a lot trickier.
The most obvious way I can think of is to create a dummy skill which has the exact same effects (including graphics) except the slow, for EVERY ability in your map that slows. This is rather tricky for cold based abilities which have an innate 30% movement slow, you'll need to replace them.
Then detect when the unit with this skill is slowed by a certain slow, and remove it immediately. Summon a dummy unit for the owner of the slow-caster, give it your non-slow version of the spell in question and have it apply to the "slow-immune" unit.
With passives, orbs and innate slowing attacks, you can just make bonus movement speed spells with 0 cool-down that last for the same amount and stack with each other but not instances of themselves and have a separate dummy follow your "slow-immune" unit and apply them whenever it's attack with a passive, orb or innate slowing attack.
:nuts:
It's a triggered speed boost, as it is applied to multiple units (all units owned by Lycan player, in fact).
Trigger:
- Unit Group - Pick every unit in (Units owned by (Matching player)) and do (Unit - Set (Picked unit) movement speed to 1000000.00)
Matching Player is just a placeholder, and the units still won't move beyond 522. But it can be reversed just as easily with an identical line containing "default speed of picked unit" instead of "1000000".
Nope, not really correct, because we have this...It's impossible to set move speed over 522. Even if you change it on Obj Editor, the game will still recognize 522 the maximum.
It's what I said: Minimum move speed may be 522, then no matter slows on it, the minimum is actually the maximum.