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

[JASS] Actual Player Camera Bounds

Status
Not open for further replies.
Level 14
Joined
Jul 1, 2008
Messages
1,314
Hey Guys,

I need your help. I already used the Search tool, but i didnt find anything helpfull.

I want to find out the actual current camera bounds of a player in multiplayer.
I know, there could be a workaround with a fixed cam, adjusted to a unit, but
is there any other way, if camera isnt fixed?

I really hope, you guys could help me out.

Emma
 
Level 13
Joined
Nov 22, 2006
Messages
1,260
I found something in common.j:

JASS:
constant native GetCameraBoundMinX          takes nothing returns real

constant native GetCameraBoundMinY          takes nothing returns real

constant native GetCameraBoundMaxX          takes nothing returns real

constant native GetCameraBoundMaxY          takes nothing returns real

EDIT: You're a girl? :D
 
Level 14
Joined
Jul 1, 2008
Messages
1,314
There are not many girls, that play wc3, and im not a girl :p

I know these functions, but i thought, they would return some kind of preset or the maximal coordinates of the camera bounds.

I didnt test this though in multiplayer, maybe with GetLocalPlayer() it would return the right thing...
(cant test in mp though at the moment :/)
 
Level 13
Joined
Nov 22, 2006
Messages
1,260
>>I know these functions, but i thought, they would return some kind of preset or the maximal coordinates of the camera bounds.

Yeah, you're right, they don't take anything so they can't really know the bounds of a certain camera. I'll try to find something else later.
 
Status
Not open for further replies.
Top