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

need help

Status
Not open for further replies.
Level 24
Joined
Jul 9, 2009
Messages
4,097
how do I make so that when the game start the camara is locked to a specificc region and when a building is clicked the camera moves to another region and locks the camera to that region?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,202
No cause the trigger depends on your map and what you are after thus you have to make it.
I advise looking up maps which do something simlar to what you are after (locking camera) and seeing how they do it and then enhancing that process to suit your needs.

I if you can not lock a camera to a single spot on the map, you need some kind of loop that runs 60 times a second and every time, sets the player view to the same spot. The camera or target of the camera could be stored in a variable and when the camera lock is not needed, you could turn it off to save processor time.
 
Status
Not open for further replies.
Top