代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。

原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html



一三九.快速找到骨眼(骨眼在地图上显示)

	用MT管理器打开游戏目录/assets/scripts/prefabs/chester_eyebone.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容:

	local minimap = inst.entity:AddMiniMapEntity()
	minimap:SetIcon( "chester.png" )

	即可在地图上看到骨眼的位置,显示为切斯特,生出切斯特后,则地图上有两个切斯特图标,一个是切斯特,一个是骨眼