land ships
Posted: 18 Mar 2016, 10:44
Are there any circumstances under which units with a movement class with speedmodclass = 3 (ship) can move on land, or under it, or float above it? This is for the sand worm map. I can't think of any other way to use the native pathfinder to avoid rocks. The rocks are a different terraintype, and there's no water on the map, so ship movement multiplier can be set to 0.0. I made a unit
and movement class
it can't move, which, yes, is probably how it should be.
Code: Select all
underworm = {
movementClass = "UNDERSAND",
maxVelocity = 1.0,
acceleration = 1.0,
turnRate = 100,
turnInPlace = false,
waterline = -150,
crushResistance = 99999,
blocking = false,
buildPic = "sworm.png",
canMove = true,
description = "I'd like to be under the sand, in a sand worm's garden.",
footprintX = 1,
footprintZ = 1,
iconType = "sworm",
levelGround = false,
maxDamage = 9999,
name = "Sand Worm",
objectName = "swormOpenMouth-180_50out-r45.s3o",
script = [[nullscript.lua]],
-- stealth = true,
-- canCloak = true,
-- initCloaked = true,
customParams = {
ignoreplacementrestriction = true,
},
},
Code: Select all
UNDERSAND = {
speedmodclass = 3,
crushstrength = 0,
footprintx = 1,
footprintz = 1,
maxslope = 90,
maxwaterslope = 90,
minwaterdepth = -9999,
avoidmobilesonpath = false,
},