Basically this only allows to controll turning, acceleration and max speed.
I wanted to make a powerup that gives units the the ability to cross water.
So I did this:
Spring.MoveCtrl.SetGroundMoveTypeData (unitID, "floatOnWater", true)
But it does not work, the unit still can no enter deep water. It also still tilts with the sea ground. (yes, can be changed with upright=true or something)
The only thing that changes is that in shallow water the unit gets lifted up to the waterplane.
Not really what I expected from "floatOnWater"
flower pot -> floatOnWater=true
notice the tank in front without flower is sunk into the water but that is the only difference it makes.
Is that possible at all to change where a unit can go? (also regarding climbing ability)
Beside workarounds like unit swapping/morphing or
Code: Select all
if (unitPosition.y < 0 and not hasWalkOnWaterUpgrade) then moveToPreviousPosition