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