HeroEngine Forums

HeroEngine Support => General Discussion => Topic started by: OblivionMMO on May 07, 13, 07:26:04 PM

Title: Minimap
Post by: OblivionMMO on May 07, 13, 07:26:04 PM
Anyone have any idea how to enable the built in minimap?
Title: Re: Minimap
Post by: keeperofstars on May 07, 13, 08:04:06 PM
http://wiki.heroengine.com/wiki/Minimap

Long story short,

EnableMiniMap(enabled as boolean)

Now where you put it can be up to you, could tie it to enable / disable on a gui button, or always on. if always on put it at somewhere in the character area load script.

Be mindful not to put it in a place where it gets enabled when it already is. If the minimap is already enabled and you enable it again I find it stops working correctly. Usually best to encase it in a if block just to check for it's status first.
Title: Re: Minimap
Post by: OblivionMMO on May 07, 13, 09:07:23 PM
You sir are a gentleman and a scholar.
Title: Re: Minimap
Post by: OblivionMMO on May 09, 13, 02:40:36 PM
Apparently I dont understand.

I've created the following ifchecks, all of which wont compile.

if (EnableMiniMap == false)
if EnableMiniMap(false)
if EnableMiniMap == false
if EnableMiniMap(me, false)

None of it will compile.  Any advice here?  I'm putting it in the _newMinimap function that I have being called by pressing m
Title: Re: Minimap
Post by: Thazager on May 09, 13, 03:49:03 PM
I think it might work without using the if. Try EnableMiniMap(false) to turn it off and EnableMiniMap(true) to turn it on.

There is also a tutorial on it, if you wanted an example.
https://community.heroengine.com/forums/index.php/topic,4154.0.html
Title: Re: Minimap
Post by: Viper155 on May 09, 13, 03:55:24 PM
Anyone have any idea how to enable the built in minimap?


Not sure if this is what you are looking for but have you tried placing this into E_playerAccountClassMethods?

Code: [Select]
//Basic HJ mini map
        $GUI._newMinimap()