Warcraft III resources & community, 2003–2006 · archived

Camera Problems

5 posts
#1

Camera Problems

How do you keep cameras in place, so players cant use their mouse scroll to reset it?
#2
This is very basic triggering, Just add:
camera-Lock camera to (unit)

Hope it helps :!:

/Sr3dna
#3
That doesnt work, what i mean is that i set the camera right on the unit(like first person) and i slant it to face forward. But in order to keep it in that positiong i have a trigger that works every 0.05 seconds so reseting it wont work. But thats too messy, because is boots the host out of the game within bout 5-10 minutes.

I need something that will stick once it works...
#4

lag

hmm if your doing what i think your doing as in making a trig run every 0.05 seconds than thats kind of a mistake - the game will lag severely after like 20 minutes of game play ( thats single player ) with like 6 people it will lag like hell after 5 or so minutes...
#5
Do it this way:

Variables: r (real)

Trigger1
Event
Time - periodic event: Every 0.3 seconds of game time (if you want, you can do it more often)
Action
set r = perspective of current camera view

Trigger2
Event
Game - value of real variable: r gets unequal to 304.00
Action
Camera - Set Camera Field : Set Player1's camera perspective to 304.00 over 0.2 seconds


304.00 is the standard game view perspective; of course you have to do the Set Camera Field for every player you have in game. I don't know if the "Perspective of current camera" works correctly for more than one player, you have to try it out. But for one player, this should work and does not leak at all, I think.