
Lv.1
鸿鹄一再高举 天地睹方圆【第61期社区星】
签名:猫站肯定不会上的了,留了两个2021年退喵时最后的作品。 有老友可以来qq:2309193203找我。
在 [box3]我又来求助了()() 中回复
代码打错了,重发一份
console.clear();
world.onPlayerJoin(({entity}) => {
if(!entity.isPlayer) return;
entity.enableDamage = true;
});
world.onPress(async({button,entity,raycast}) => {
if(button != 'action0' || !entity.isPlayer || entity.player.dead) return;
const ra = raycast;
const d = ra.distance;
const MeshScale = [1 / 16, 1 / 16, 1 / 16];
const hq = world.createEntity({
mesh: 'mesh/火球.vb',
meshScale: MeshScale,
collides: false,
gravity: false,
position: entity.position,
meshEmissive: 2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222,
});
hq.id = entity.player.name;
const ani = hq.animate([
{position: entity.position,duration: 1},
{position: ra.hitPosition,duration: 0},
]);
ani.play({
duration: d / 16,
iterations: 1,
direction: Box3AnimationDirection.NORMAL,
});
hq.destroy();
});2022-01-16T17:59:23 点赞:0