I know that we can't now, but can someone code a way to have flight as an ability? i.e., if you hit the toggle, it will turn CanFly to theother state.
what you could do is make a new attribute (defaulting to 0), ToggleableFlight, that, when 1, adds a new button to the ability panel of the unit. The button swaps CanFly from 0 to 1, or 1 to 0 (depending on whether the unit is flying).
This could be used to make jumpjet units, i.e. a jumpjet Zues, that defaults CanFly as 0 (so it comes out on land). Then, if you encouter a slope to tall, you pop the light button, and the Zues starts charging you 150 E or something, and it flys like a gunship. this *should* cost something to use, though
Toggleable Flight
Moderator: Moderators
Pathing for that would be a huge biatch - consider that the jump packs could be used to fly over open water, or long lengths of too-steep-terrain.smoth wrote:Jump packs would be good instead of on/off flight. I'd rather it just be available to the unit and spring use it to have said unit jump to pass over ledges that are beyond it's level of moveable slope. having to turn them on and off would be anoying.
What seems most feasible would be to have the unit scripted to change movement types depending on terrain/slope. You know, something like
ifslope > X then movetype = AIRCRAFT else movetype = LAND
It would look like jumppacks, but would really be "the unit flies over rough terrain".