Skip to content

movement

movementType

translation:运动类型
type:enum
example:movementType: LAND
定义单位将能够通过的地形以及与单位类型相关的其他属性。类型:无、陆地、建筑、空中、水面、两栖、跨悬崖、跨水和悬崖 NONE、LAND、BUILDING、AIR、WATER、HOVER、OVER_CLIFF、OVER_CLIFF_WATER

moveSpeed

translation:移动速度
type:float
example:moveSpeed: 1.2
单位的最大移动速度。

moveAccelerationSpeed

translation:加速度
type:float
example:moveAccelerationSpeed: 0.07
定义单位加速到最大速度的加速度。

moveDecelerationSpeed

translation:减速度
type:float
example:moveDecelerationSpeed: 0.17
与加速度相对应得减速度。不要设的太小。

reverseSpeedPercentage

translation:倒车速度比率
type:float
example:reverseSpeedPercentage: 0
0.6默认值。超过0.4会在短距离(以40%的速度)时反转。 如果设置为1前进后退则不转弯。 填0时禁止倒退,必须旋转。

landOnGround

translation:降落到地面
type:boolean/enum
example:landOnGround: false
闲置时使飞行器降落。可以填true/flase/onlyIdle

targetHeight

translation:到达高度
type:float
example:targetHeight: 25
默认为0,但如果运动类型为空军则默认为35。

targetHeightDrift

translation:高度浮动
type:float
example:targetHeightDrift: 1
默认0,空军1.5.单位高度上下浮动高度。

startingHeightOffset

translation:创建时高度偏移
type:float
example:startingHeightOffset:100
单位在创建时高度。负数上升比较慢。

maxTurnSpeed

translation:转弯速度
type:float
example:maxTurnSpeed:3
最大转弯速度。

turnAcceleration

translation:转弯加速度
type:float
example:turnAcceleration:1
转弯加速度。

moveSlidingMode

translation:移动后滑动
type:boolean
example:moveSlidingMode:true
移动后滑动,相当于惯性。和单位的速度,加速度,转弯速度有关。True时受推力影响

moveIgnoringBody

translation:移动忽略转向
type:boolean
example:moveIgnoringBody:true
true效果即不必转弯便能运动,false效果即原地转弯完成才能运动

moveSlidingDir

translation:移动滑动角度
type:integer
example:moveSlidingDir:100
移动滑动角度。无明显效果。

joinsGroupFormations

translation:加入队形
type:boolean
example:joinsGroupFormations:false
将单位组成小队。铁锈调集大量部队时将其组成方阵以降低运算压力,但队形可能影响速度或浪费时间。禁用后则不参与组队。

ignoreMoveOrders

translation:忽略移动指令
type:boolean
example:ignoreMoveOrders:true
忽略移动指令,此代码强制要求移动速度为0,适用例子:红警中单位部署忽略移动指令。

moveYAxisScaling

translation:Y轴速度比例
type:float
example:moveYAxisScaling:15.1
垂直方向单位移动速度乘数,适用于2.5D,也就是用铁锈模拟3D。典型如红警。

slowDeathFall

translation:死亡缓慢降落
type:boolean
example:slowDeathFall: true
为"true"时,被击毁时降落速度减慢,并且向前滑行一段距离。注意,必须设置死亡图像,不然坠落后会显示生前图像,而不是直接炸掉。

slowDeathFallSmoke

translation:死亡降落烟
type:boolean
example:slowDeathFallSmoke: true
在死亡坠落的时候添加烟作为尾迹

heightChangeRate

translation:高度改变速率
type:float
example:heightChangeRate: 3
单位改变高度的频率,无论是转换还是浮动

fallingAcceleration

translation:降落加速度
type:float
example:fallingAcceleration:1
单位降落时的加速度

fallingAccelerationDead

translation:坠毁加速度
type:float
example:fallingAccelerationDead:1
单位被摧毁时降落的加速度

Spldream Studio