• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Getting a specific player's camera position.

Status
Not open for further replies.
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:
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.
Back
Top