2.6
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
---
|
||||
front:
|
||||
hard: 进阶
|
||||
time: 5分钟
|
||||
---
|
||||
|
||||
# Add-on与Mod协同工作
|
||||
|
||||
|
||||
|
||||
#### 作者:境界
|
||||
|
||||
|
||||
|
||||
当前中国版,有多种方式使MOD与附加包协同工作。
|
||||
|
||||
①使用GetEntitiesAround,可以传入过滤器来筛选出范围内想要的实体。
|
||||
|
||||
②使用TriggerCustomEvent,可以执行某个生物行为定义的生物事件。
|
||||
|
||||
③监听EntityDefinitionsEventServerEvent事件,可以监听到游戏内的某个实体触发了某个事件。
|
||||
|
||||
④使用GetMolangValue,可以在客户端上获取某个实体的query函数值。
|
||||
|
||||
Reference in New Issue
Block a user