I want to make a custom missile system for my map that creates a dummy unit that acts as a missile whenever a unit attacks another unit and then moves that dummy unit over time towards the target. All that I can do, but I can't figure out two vital things:
1. Since i'll be dealing damage using triggers, how do I prevent the unit from doing it's basic auto-attack damage? I tried setting the missile speed to 0 but it just dealt the damage instanstly. I don't want to set the unit's damage to 0 b/c I want players to be able to see how much damage the units do when they click on them in-game.
2. How would I go about preventing human players with ranged heroes from spamming the attack button to create multiple missiles within a small amount of time? I could set a timer obviously but then the timer would have to be exactly equal to the unit's attack speed and the speed wouldn't update while the timer is off and it seems like it would be difficult and likely become innacurate to keep track of a unit's attack speed.
Any help would be appreciated.
1. Since i'll be dealing damage using triggers, how do I prevent the unit from doing it's basic auto-attack damage? I tried setting the missile speed to 0 but it just dealt the damage instanstly. I don't want to set the unit's damage to 0 b/c I want players to be able to see how much damage the units do when they click on them in-game.
2. How would I go about preventing human players with ranged heroes from spamming the attack button to create multiple missiles within a small amount of time? I could set a timer obviously but then the timer would have to be exactly equal to the unit's attack speed and the speed wouldn't update while the timer is off and it seems like it would be difficult and likely become innacurate to keep track of a unit's attack speed.
Any help would be appreciated.