• 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.

Getting a specific player's camera position.

Status
Not open for further replies.

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,219
let's see..

  • Actions
    • Unit - Create 1 Footman for Player 1 (Red) at (Center of (Current camera bounds)) facing Default building facing degrees
converts into..

JASS:
GetRectCenter(GetCurrentCameraBoundsMapRectBJ()

JASS:
function GetCurrentCameraBoundsMapRectBJ takes nothing returns rect
    return Rect(GetCameraBoundMinX(), GetCameraBoundMinY(), GetCameraBoundMaxX(), GetCameraBoundMaxY())
endfunction

JASS:
constant native GetCameraBoundMaxX takes nothing returns real


so it doesn't seem like it.
 
Last edited:
Level 20
Joined
Jul 14, 2011
Messages
877
The thing is that I needed to set them in separate variables, so I cant know whose camera position it would take (atleast I couldnt find a way to do so), and it didnt cause any de-sync issues. I tested it in a LAN hopefully it wont be much of a problem if its played in a BNET-typed server. If it is, well, it's not that essential.
 
Status
Not open for further replies.
Top