• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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