Wous Korvus Posted June 10, 2021 Share Posted June 10, 2021 (edited) Please help to make the icon of the object on the minimap visible to everyone and always (like Celestial Orb). Object file I will attach belowpillar_tree.lua Edited June 10, 2021 by Wous Korvus Link to comment Share on other sites More sharing options...
Monti18 Posted June 11, 2021 Share Posted June 11, 2021 Did you add a AddMinimapAtlas("images/map_icons/yourstructure.xml") in your modmain? Otherwise your structure has no minimap icon and won't be visible. 1 Link to comment Share on other sites More sharing options...
Wous Korvus Posted June 13, 2021 Author Share Posted June 13, 2021 On 6/11/2021 at 11:05 PM, Monti18 said: Did you add a AddMinimapAtlas("images/map_icons/yourstructure.xml") in your modmain? Otherwise your structure has no minimap icon and won't be visible. There is an icon on the minimap, but it is not always visible as for example Celestial Orb Link to comment Share on other sites More sharing options...
Well-met Posted June 13, 2021 Share Posted June 13, 2021 (edited) -- Deerclops detection (everyone) if GLOBAL.TheNet and GLOBAL.TheNet:GetIsServer() then AddPrefabPostInit("deerclops", function(inst) inst.entity:AddMiniMapEntity() inst.MiniMapEntity:SetIcon("messagebottletreasure_marker.png") inst.icon = GLOBAL.SpawnPrefab("globalmapicon") inst.icon:TrackEntity(inst) inst.MiniMapEntity:SetCanUseCache(false) inst.MiniMapEntity:SetDrawOverFogOfWar(true) end) end change the names and prefabs where necessary put in modmain.lua Edited June 13, 2021 by Well-met Link to comment Share on other sites More sharing options...
Wous Korvus Posted June 14, 2021 Author Share Posted June 14, 2021 14 hours ago, Well-met said: -- Deerclops detection (everyone) if GLOBAL.TheNet and GLOBAL.TheNet:GetIsServer() then AddPrefabPostInit("deerclops", function(inst) inst.entity:AddMiniMapEntity() inst.MiniMapEntity:SetIcon("messagebottletreasure_marker.png") inst.icon = GLOBAL.SpawnPrefab("globalmapicon") inst.icon:TrackEntity(inst) inst.MiniMapEntity:SetCanUseCache(false) inst.MiniMapEntity:SetDrawOverFogOfWar(true) end) end change the names and prefabs where necessary put in modmain.lua Thank you very much Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now