How to center view for player?

Status
Not open for further replies.
Level 15
Joined
Aug 7, 2013
Messages
1,342
Hi,

How do I make the player's screen center on a given location?

This snippet of code doesn't do anything, sadly :[

JASS:
...
        if GetLocalPlayer() == players[pid] then
            call PanCameraToTimed(GetLocationX(targetLoc), GetLocationY(targetLoc), 0)
 
Status
Not open for further replies.
Back
Top