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
if (unitPosition.y < 0 and not hasWalkOnWaterUpgrade) then moveToPreviousPosition
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum