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

Camera Locking?

Status
Not open for further replies.
Level 3
Joined
Mar 30, 2007
Messages
26
How do you make it so that a player's camera is restricted to only a certain area of the map, like in Uther Party and such, and how do you make it so a person's camera is locked at a certain angle and cannot unlock it even by pressing CTRL + C?

Thanks.

~Panda
 
Level 11
Joined
Jun 13, 2007
Messages
570
there is a function under cinematics called Set Camera Bounds, thats used to make it restricted to a certain area, it uses a Region variable (rect for jass)

to make the camera locked, you have to keep reapplying the lock in an endless loop with a "wait" so it doesnt lock the CPU, other wise 1 CTRL C will clear it
 
  • Like
Reactions: Rui
Status
Not open for further replies.
Top