HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

PingMinimap() not working?

04-05-2009, 03:05 PM#1
Tyrande_ma3x
Collapse JASS:
    if IsPlayerInForce(GetLocalPlayer(), bj_FORCE_ALL_PLAYERS) then
        call PingMinimap(0., 0., 30.)
    endif
It pings my minimap at the bottom left corner. Why?
04-05-2009, 03:23 PM#2
Bobo_The_Kodo
You could use PingMinimapEx


Or ;

Try PingMinimap( 0.5, 0.5, 30 )

if it pings the middle of the map, then you can do:

call PingMinimap( ( GetRectMaxX( bj_mapInitialPlayableArea ) - GetRectMinX( bj_mapInitialPlayableArea ) ) / ( x - GetRectMinX( bj_mapInitialPlayableArea ) ) ...
04-05-2009, 03:35 PM#3
Hans_Maulwurf
Just tested and your code pings at bottom left corner when run at mapinit and pings in center of map when run at 0.00 sec elapsed game time.

do you run this at mapinit? if so, try elapsed game time instead
04-05-2009, 03:55 PM#4
Tyrande_ma3x
> and pings in center of map when run at 0.00 sec elapsed game time
Ah, yes, it is ran at map initialization - that was the problem. Thanks a lot, I got it fixed.