用户:ray_crazy查看:181 回复:5 评论:6 创建时间:2022-02-26T16:36:43
直击重点对象--Box3ChatEvent
众所周知,
但是,真的有Box3Entity.onChat吗?
没有!
翻遍api文档,除了world.onChat,根本没有其他的聊天事件触发器!
如果直接去使用
world.onPlayerJoin(({entity})=>{
entity.onChat(console.log)
})
会发现
*******************
再次直击重点对象--Box喵layer
许多人都知道一个函数:
Box喵layer.kick
// example
world.onPlayerJoin(({entity})=>{
entity.player.kick();
})
(千万不要去逝,会去世的,整个图基本废掉)
此函数可以踢出玩家
但是,再次翻遍api文档,里面根本没有kick函数!!!
*******************
还有API里面没有的一种视角(类似于follow,FPS)叫:
RELATIVE点赞0
评论
介绍一下
https://shequ.codemao.cn/community/427871