猫史档案馆


看看哪里不对了,没法存档了(跑酷)

用户:時分時分查看:0 回复:3 评论:0 创建时间:2022-01-24T19:07:58


world.addCollisionFilter('player', 'player'); world.querySelectorAll('S').forEach((e) => {     if (e.id.includes('存档点')) {         e.collides = true;         e.addTag('存档点');         e.fixed = true;     } }) world.onEntityContact(({ entity, other }) => {     if (entity.isPlayer) {         if (other.hasTag('存档点')) {             entity.player.spawnPoint.set(other.position.x, other.position.y + 3, other.position.z)             entity.player.directMessage(`你的存档点已经设置为${other.position}`)         }     } });


回复

上一页1 页 / 共 1下一页
冰糖葫芦_冰糖葫芦_

world.addCollisionFilter('player', 'player'); world.querySelectorAll('*').forEach((e) => {     if (e.id.includes('存档点')) {         e.collides = true;         e.addTag('存档点');         e.fixed = true;     } }) world.onEntityContact(({ entity, other }) => {     if (entity.isPlayer) {         if (other.hasTag('存档点')) {             entity.player.spawnPoint.set(other.position.x, other.position.y + 3, other.position.z)             entity.player.directMessage(`你的存档点已经设置为${other.position}`)         }     } });

点赞0


评论


编码喵编码喵

匹配实体的函数的参数'S',改为'.S'

点赞0


评论


時分時分

感谢神明

 

点赞0


评论