• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How to center view for player?

Status
Not open for further replies.
Level 15
Joined
Aug 7, 2013
Messages
1,338
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.
Top