- Joined
- Jan 11, 2009
- Messages
- 3,414
Hello guys.
I am making a custom missile system, where the missiles are targetable for some units (think starcrafts point defence guns). To set the missile dummys orientation, i use SetUnitLookAt in combination with SetUnitPosition (the latter required for it to work), which means the dummies must ignore pathing. They must also be unselectable.
I know that adding locust to the unit and then morphing it into itself makes it unselectable but targetable, however, it will be pathable, which screws up the movement. I also heard that immediately removing the morph ability afterwards makes it unpathable, but that only gives the effect of regular locust for me. I can also note that SetUnitPathing does not work after adding locust in this case, for some reason.
Any ideas?
I am making a custom missile system, where the missiles are targetable for some units (think starcrafts point defence guns). To set the missile dummys orientation, i use SetUnitLookAt in combination with SetUnitPosition (the latter required for it to work), which means the dummies must ignore pathing. They must also be unselectable.
I know that adding locust to the unit and then morphing it into itself makes it unselectable but targetable, however, it will be pathable, which screws up the movement. I also heard that immediately removing the morph ability afterwards makes it unpathable, but that only gives the effect of regular locust for me. I can also note that SetUnitPathing does not work after adding locust in this case, for some reason.
Any ideas?