I know that abilities know the location of the mouse, the location of the unit using the ability, and the angle between the two during the targeting phase (just look at the Raynor Snipe ability), so is it possible to make a model of a unit part of the ability so that the model looks at the mouse? It needs to work for a moving unit (the unit itself would be invisible, and only actually be visible in the model included in the ability).
If that wasn't clear, I want to permanently have an invisible unit using an ability that requires a target (chosen with mouse), so that I can have a model (of the unit) in the targeting phase of the ability that will look at the mouse and be at the position of the invisible unit (even if it is moving).
I know this is very complicated, but I really want to find a way to do it, not only because it is fairly necessary for my map but because it would be awesome (to my knowledge this has not been done before and is widely considered impossible). Any help would be greatly appreciated.
Edit: forgot to mention that the model doesn't need to play movement animation (there is no ground in my map), it only needs to move with invisible unit.
I know that abilities know the location of the mouse, the location of the unit using the ability, and the angle between the two during the targeting phase (just look at the Raynor Snipe ability), so is it possible to make a model of a unit part of the ability so that the model looks at the mouse? It needs to work for a moving unit (the unit itself would be invisible, and only actually be visible in the model included in the ability).
If that wasn't clear, I want to permanently have an invisible unit using an ability that requires a target (chosen with mouse), so that I can have a model (of the unit) in the targeting phase of the ability that will look at the mouse and be at the position of the invisible unit (even if it is moving).
I know this is very complicated, but I really want to find a way to do it, not only because it is fairly necessary for my map but because it would be awesome (to my knowledge this has not been done before and is widely considered impossible). Any help would be greatly appreciated.
Edit: forgot to mention that the model doesn't need to play movement animation (there is no ground in my map), it only needs to move with invisible unit.