MegaGlest Forum
MegaGlest => MegaGlest => Topic started by: Tiel on 25 December 2014, 06:54:24
-
I realize moving while attacking isn't really a thing and probably won't be for megaglest's near future, but I was wondering if there's any way to remove the prerequisite for the unit to turn and face an object prior to attacking it? I'm a novice at programming but if someone could kick me in the right direction that'd be great.
(what I want to do is have the unit utilize the attack_stopped type instead to simulate the effect, without the turning giving it away)
-
Units are already able to do this if they don't have a move skill but do have an attack skill (eg, Tech's defence tower). However, you can't currently have a moveable unit that does this.
So you'd have to implement it yourself if that's the case that you want.
-
Where is it handled? I've been poring over the source since I made this topic, but I don't have the familiarity with the methods called to really do so effectively (yet to find anything). Although the code is commented in places and the text isn't the gibberish to me it was a year ago I still remain perplexed.