OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: nuxil on 04 Sep 2009, 16:14:55

Title: Ingame Map dialog. open or not ?
Post by: nuxil on 04 Sep 2009, 16:14:55
Hi all..

i need some of your help guys.
i want to figure out how to check if the map is open, any ideas on how it can be done ?


Code: [Select]
_NR=X????
While {alive player} do
{
      WaitUntil {!IsNull (FindDisplay _NR)};

      Hint "Map Dialog is open";

      WaitUntil {IsNull (FindDisplay _NR)};

      Hint "Map Dialog is closed";
};

i have tried many idc's but it wount work :(
so im thinking is it because the RscMapControl and,or RscDisplayMainMap has access = 0?

or am i just missing some basic commands here.
Title: Re: Ingame Map dialog. open or not ?
Post by: i0n0s on 04 Sep 2009, 16:25:47
visibleMap (http://community.bistudio.com/wiki/visibleMap)?
Title: Re: Ingame Map dialog. open or not ?
Post by: nuxil on 04 Sep 2009, 16:29:58
omg. how could i miss that one. i basicly live on the wiki :p

Thanks i0n0s
Title: Re: Ingame Map dialog. open or not ?
Post by: Trexian on 04 Sep 2009, 17:13:34
Quick follow up!  How do I force the map to show up?  As in, an addaction to create a onMapClick, I want the map to automagically show upon hitting the addaction. :)

(No, I haven't searched yet - I just saw this thread and am glomming on.) :)