OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: LCD on 13 Aug 2007, 14:01:48
-
im creatin a map dialog (actualy tryin 2 make somin like BIS did in da campaign... but usin map dialog instead of pictures...)
now does ny1 knows how can i get da position dat is in da center of da map (it starts on da player... but he can scroll) ?
also it seems dat da ctrlMapScale comand is bugged... it returns true (bool) instead of number... ny idea how can i fix dat ? thx
LCD OUT
-
Check any of the missions with MCC here (http://www.ofpec.com/forum/index.php?topic=29031.0). You will see that small map to the left, it is scrollable, and you may zoom it in/out. But you may also enslave the map to follow any object, reset its position to player's vehicle position, etc. Is that what you need?
-
not exactly what i need... wat i realy want... is 2 check if da player scroled da map... nd moved it from were it shud b... or if he zoomed out or zoomed in...
LCD OUT
-
I can't rememeber but I think using the mouse to move map (with right button) can be detected with OnMapSingleClick, but the keyboard could still be used I guess.
-
not exactly wat im lookin4 :P
nywayz... here (http://www.ofpec.com/forum/index.php?topic=30047.0)s wat it all came to... still gonna upgrade it but its a nice resault
LCD OUT
-
Well you could use onMouseMoving ui eventhandler or ctrlMapScreenToWorld to check if the user scrolled the map.
-
cant get da ctrlMapScreenToWorld thingy 2 work at all.... will check da UI eventhandlers soon tho
LCD OUT