代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。
原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html
1
2一五0.在地下也能使用紫色魔杖传送到传送核心
3
4 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/staff.lua文件,将下列内容:
5
6 if ground.topology.level_type == "cave" then
7 TheCamera:Shake("FULL", 0.3, 0.02, .5, 40)
8 ground.components.quaker:MiniQuake(3, 5, 1.5, teleportee)
9 return
10 end
11
12 替换为:
13
14 --if ground.topology.level_type == "cave" then
15 --TheCamera:Shake("FULL", 0.3, 0.02, .5, 40)
16 --ground.components.quaker:MiniQuake(3, 5, 1.5, teleportee)
17 --return
18 --end
19
20 即可在地下也能使用紫色魔杖传送到传送核心,但只会传送到地下建的传送核心,而不会传送到地上