Maris Posted February 18, 2015 Share Posted February 18, 2015 (edited) It's needed for my Killer's Traps mod. Somthing like this:if inst.is_visible then -- code for showing icon on the mapelse -- hide iconendNow I just made "no_icon.png" (64x64 image 100% transparent) and just replaced original icon: AddPrefabPostInit("trap_teeth",function(inst) local minimap = inst.entity:AddMiniMapEntity() minimap:SetIcon("no_icon_64.tex")And I'm not sure about second AddMiniMapEntity execution. Will it return existing variable or create new? Edited February 18, 2015 by Maris Link to comment https://forums.kleientertainment.com/forums/topic/51122-how-to-showhide-icons-of-some-items-on-the-map/ Share on other sites More sharing options...
rezecib Posted February 18, 2015 Share Posted February 18, 2015 @Maris, inst.MiniMapEntity:SetEnabled(false) Link to comment https://forums.kleientertainment.com/forums/topic/51122-how-to-showhide-icons-of-some-items-on-the-map/#findComment-614214 Share on other sites More sharing options...
Maris Posted February 18, 2015 Author Share Posted February 18, 2015 (edited) @Maris, inst.MiniMapEntity:SetEnabled(false)Great! It works! Edited February 18, 2015 by Maris Link to comment https://forums.kleientertainment.com/forums/topic/51122-how-to-showhide-icons-of-some-items-on-the-map/#findComment-614249 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