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

Rotated Camera and Setting Camera Bounds

Status
Not open for further replies.
Level 7
Joined
Apr 12, 2009
Messages
188
So I painfully realized that setting camera bounds when the camera is rotated any direction other than north is a bad idea.

Is there an easy way to get a specified player's camera rotation? That way you could quickly set the players camera rotation to north, set the camera bounds, and then rotate the camera back to the users rotation.

I know of the function:

  • Set CameraRotation = (Rotation of the current camera view)
which is the same as...
Code:
set udg_CameraRotation = GetCameraField(CAMERA_FIELD_ROTATION)

...from which player does that function get the camera field? If each player has a different rotation, whose rotation is returned by that function?


Thanks for any help!
 
Ah, yes, thank you good sir!

[EDIT] Actually, I think what you meant to put in the second line of custom script was:

Code:
set udg_CameraRotation = GetCameraField(CAMERA_FIELD_ROTATION)
I haven't tested this yet though, not sure if that's right. But my point was to collect the camera field not to set it.
 
Last edited:
Status
Not open for further replies.
Back
Top