Sheepolution Posted May 5, 2015 Share Posted May 5, 2015 Are the minimap functions done in C++? I found some functions in maputil.lua, and of course there is prefabs/minimap.lua, but other than that I can't really find where the function for it are defined. I'm mainly looking for the function where the minimap gets revealed on the position where the player is walking. Thanks in advance! Link to comment https://forums.kleientertainment.com/forums/topic/53559-help-where-are-the-minimap-functions-defined/ Share on other sites More sharing options...
DarkXero Posted May 6, 2015 Share Posted May 6, 2015 In TheWorld.minimap.MiniMapIn the MiniMap userdatalocal mm = TheWorld.minimap.MiniMapmm:GetTextureHandle() mm:Offset(dx, dy)mm:ResetOffset() mm:ShowArea(x, y, z, radius)mm:Zoom(n)mm:GetZoom()mm:AddRenderLayer(handle)mm:CacheForgottenEntities(true|false)mm:AddAtlas("atlasfilepath")mm:ToggleVisibility()mm:ClearRevealedAreas()mm:ContinuouslyClearRevealedAreas(true|false)mm:EnableFogOfWar(true|false)mm:IsVisible()mm:DrawForgottenFogOfWar(true|false)mm:SetEffects(shader_filename, fs_shader)mm:RebuildLayer(original_tile_type, x, y)mm:EnablePlayerMinimapUpdate(true|false)If you are trying to make a mod that makes shared revealed maps, I recommend you to wait until the minimap gets exposed more. Link to comment https://forums.kleientertainment.com/forums/topic/53559-help-where-are-the-minimap-functions-defined/#findComment-634974 Share on other sites More sharing options...
Sheepolution Posted May 6, 2015 Author Share Posted May 6, 2015 If you are trying to make a mod that makes shared revealed maps, I recommend you to wait until the minimap gets exposed more. Haha yes, that was exactly my idea. But okay, I guess I'll have to wait. Link to comment https://forums.kleientertainment.com/forums/topic/53559-help-where-are-the-minimap-functions-defined/#findComment-635010 Share on other sites More sharing options...
DarkXero Posted May 6, 2015 Share Posted May 6, 2015 @Sheepolution,http://forums.kleientertainment.com/topic/51259-im-not-a-modder-but-id-like-a-server-side-mapminimap-mod/ Link to comment https://forums.kleientertainment.com/forums/topic/53559-help-where-are-the-minimap-functions-defined/#findComment-635025 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