Skip to content

attachment ​

x ​

translation:X坐标
type:float
example❌10
子单位x轴位置

y ​

translation:Y坐标
type:float
example:y:15
子单位Y轴位置

height ​

translation:高度
type:float
example:height:3
子单位高度。

lockDir ​

translation:锁定角度
type:boolean
example:lockDir:true
是否锁定角度

idleDir ​

translation:闲置方向
type:integer
example:idleDir:45
闲置时角度。

idleDirReversing ​

translation:闲置方向反转
type:float
example:idleDirReversing:1
允许朝向反转,比如重坦倒退移动时炮塔反转,而不需要整个单位转向。

isVisible ​

translation:是可见
type:boolean
example:isVisible:true
是可见的。

onCreateSpawnUnitOf ​

translation:创建时生成单位
type:unit name
example:onCreateSpawnUnitOf:flydog
此创造时也产生此子单位。

canBeAttackedAndDamaged ​

translation:可被攻击或损坏
type:boolean
example:canBeAttackedAndDamaged:true
可以被攻击或受到伤害。

isUnselectable ​

translation:不可选择
type:boolean
example:isUnselectable:true
是不可选择的。

isUnselectableAsTarget ​

translation:禁止选择和作为目标
type:boolean
example:isUnselectableAsTarget:true
默认效果为isUnselectable。可以用来创造不能被选择但是可以被攻击,回收的单位

lockLegMovement ​

translation:锁定腿脚运动
type:boolean
example:lockLegMovement:true
锁定腿脚防止乱动。

freezeLegMovement ​

translation:冻结腿脚运动
type:boolean
example:freezeLegMovement:true
冻结腿脚防止乱动。

showMiniHp ​

translation:显示迷你血条
type:boolean
example:showMiniHp:false
指附属单位下面那个又小又细的血条栏

hideHp ​

translation:隐藏血量
type:boolean
example:hideHp:true
隐藏单位的血量并不显示

hidden ​

translation:隐藏
type:boolean
example:hidden:true
隐藏整个单位

keepAliveWhenParentDies ​

translation:保持子存活
type:boolean
example:keepAliveWhenParentDies:true
当此单位死亡时,子单位保持存活。

setDrawLayerOnTop ​

translation:绘制于顶层
type:boolean
example:setDrawLayerOnTop:true
此子单位绘制于顶层。

setDrawLayerOnBottom ​

translation:绘制于底层
type:boolean
example:setDrawLayerOnBottom:true
此子单位绘制于底层。

addTransportedUnits ​

translation:增加被运输单位
type:boolean
example:addTransportedUnits:true
添加到运输单位槽中。

lockRotation ​

translation:锁定旋转
type:boolean
example:lockRotation:true
锁定方向,禁止旋转。

rotateWithParent ​

translation:子单位一同旋转
type:boolean
example:rotateWithParent:true
旋转时子单位是否一同旋转。

resetRotationWhenNotAttacking ​

translation:不攻击时重置角度
type:boolean
example:resetRotationWhenNotAttacking:true
不攻击时恢复到自身默认角度

deattachIfWantingToMove ​

translation:移动时脱离
type:boolean
example:deattachIfWantingToMove:true
若收到移动命令,子单位将自动分离。这包括来自action的路径点。可以用来制作机场。

unloadInCurrentPosition ​

translation:卸载于此位置
type:boolean
example:unloadInCurrentPosition:true
卸载单位时在这个位置进行卸载

prioritizeParentsMainTarget ​

translation:优先考虑父单位的主要目标
type:boolean
example:prioritizeParentsMainTarget:true
子单位优先考虑父单位当前的目标。

alwaysAllowedToAttackParentsMainTarget ​

translation:总是攻击父单位的主要目标
type:boolean
example:alwaysAllowedToAttackParentsMainTarget:true
子单位总是跟随攻击父单位的主要目标。

onlyAttackParentsMainTarget ​

translation:只攻击父单位的主要目标
type:boolean
example:onlyAttackParentsMainTarget:true
子单位只会攻击父单位的攻击目标。

canAttack ​

translation:可攻击
type:boolean
example:canAttack:true
默认值为true。设置为false以阻止子单位自动攻击。

onParentTeamChangeKeepCurrentTeam ​

translation:改变队伍时子单位保持原队伍
type:boolean
example:onParentTeamChangeKeepCurrentTeam:true
默认值为false。如果为true则父单位改变队伍时子单位不改变队伍。

smoothlyBlendPositionWhenExistingUnitAdded ​

translation:补充时平滑移动
type:boolean
example:smoothlyBlendPositionWhenExistingUnitAdded:true
补充所装载单位至槽位时平滑移动。

keepWaypointsNeedingMovement ​

translation:保持需要移动路径点
type:boolean
example:keepWaypointsNeedingMovement:false
默认值为false。当为false时,队列中任何需要移动才能完成的队列路径点都会被移除。

showAllActionsFrom ​

translation:显示所有操作来源
type:Logicbooleanean
example:showAllActionsFrom:if self.hasFlag(id=1)
当被选中时,在父单元列表中显示所有附加单位的动作

createIncompleteIfParentIs ​

translation:创建随父单位
type:boolean
example:createIncompleteIfParentIs:false
如果父节单位不完整,则创建子单位不完整

onConvertKeepExistingUnitInSameSlot ​

translation:转换时附属仍然在同一槽位中
type:boolean
example:onConvertKeepExistingUnitInSameSlot:true
转换单位时如果有相同ID的附属槽位则子单位就会在那个槽位中

redirectDamageToParent ​

translation:重定向伤害到父单位
type:boolean
example:redirectDamageToParent:true
将对附属造成的伤害重定向到父单位,而不是伤害子单位自身。

redirectDamageToParent_shieldOnly ​

translation:重定向伤害到父单位护盾
type:boolean
example:redirectDamageToParent_shieldOnly:true
只将对附属造成的伤害重定向到父单位的护盾,而不是伤害子单位自身。如果盾没了那就伤害自身,如模块蜘蛛。

Spldream Studio