However, to be able to make them float, I had to give them the hover MoveType and CanHover=1 (and some script to follow the slope while on land, like the one in Nanoblobs Demon for ex.). From that time on the units cannot be loaded into a transport (load cursor just doesn't appear while targeting them). I tried various tags like Mass to no effect.
I then looked into Spring source and found something interesting (in TransportCAI.cpp, function CanTransport):
Code: Select all
if(unit->unitDef->canhover || unit->unitDef->floater || unit->unitDef->canfly)
return false;
So, does anyone have an idea what could be done?
BTW, there was another small glitch with those units. If set to leave tracks, they still do that while in the water. Tracks appearing on the sea bottom under a floating unit look strange. That's minor though.