{ //幽灵跟随伪代码脚本 "AbilityName" : "TestPlayer_Ability_Tianheng_30", "AbilityStacking": "Unique", "DefaultModifier": { "ModifierStacking":"Unique", "OnAdded": [ { "$type" : "MoleMole.TriggerAbilityAction", "AbilityName" : "TestPlayer_Ability_Tianheng_30", "Target" : "Self", }, //把指定特效挂在指定点上的Action { "$type": "MoleMole.AttachEffect", //Action名称 "EffectPattern": "Eff_Unagi_Ghost", //特效名称,索引至SpecialEffect表 "Target": "Self", //挂在谁身上 //挂的位置 "AttachEffectPosRot" : { "CoordsOption" : "ReferTarget", "TargetOption" : { "$type" : "MoleMole.ConfigPosRotReferTarget", "OffsetReferTarget" : "Self", "AttachPoint" : "Unagi_GhostPoint_01", "IsUseAttachPointPos" : true, "IsUseAttachPointRotation" : true, }, "Offset" : { "PositionOffset" : {"x":0.0, "y":0.0, "z":0.0}, "AngleOffset" : {"x":0.0, "y":0.0, "z":0.0}, "IsUseRotationY" : true, "IsUseRotationXZ" : false, } }, }, ] }, // "AbilityMixins" : // [ // //这个Mixin的功能,就是创建一个挂点,并且按照我们想要的路径算法跟随固定位置 // { // //初始位置及朝向 // "$type" : "MoleMole.AttachPointMixin", // "AttachPointName" : "Unagi_GhostPoint_01", // "Target" : "Self", // "AliveDuration" : -1, //挂点存在时间 // "FollowPosRot" : // { // "CoordsOption" : "Self", // "TargetOption" : // { // "$type" : "MoleMole.ConfigPosRotReferTarget", // "OffsetReferTarget" : "Self", // }, // "Offset" : // { // "PositionOffset" : {"x":-1.5, "y":1.5, "z":-1.5}, // "AngleOffset" : {"x":0.0, "y":0.0, "z":0.0}, // "IsUseRotationY" : true, // "IsUseRotationXZ" : false, // }, // }, // "MoveType": // { // //MovementTypeInstant // //MovementTypeFixedSpeed // //MovementTypeLerpSpeed // //MovementTypePolarFixedSpeed // //MovementTypePolarLerpSpeed // "$type" : "MoleMole.MovementTypePolarLerpSpeed", // "PolarAngleRatioType" : "FixedValue", //固定值 // "PolarAngleClampRatio" : 1.0, //->目前是定值,可以扩展为一条曲线 // "PolarAngleRatioType" : "CustomCurve", //曲线 // "PolarAngleCustomCurveKey":"Default_ClampAuto", //指定曲线Key值,索引至AnimationCurve配置文件 // //X轴代表当前值与目标值之间的差值,Y轴代表速率值 // "PolarRadiusClampRatio" : 1.0, //->目前是定值,可以扩展为一条曲线 // "PolarHeightClampRatio" : 1.0, //->目前是定值,可以扩展为一条曲线 // }, // "RotateType": // { // "$type" : "MoleMole.RotateTypeLerpSpeed", // "LerpSpeed" : 1.0, // }, // } // ] // //疑问:如果想要更新这个挂点的位置,如何处理?用新的Action吗?类似的还有更改挂点的MoveType。 }