HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

camera help.

04-09-2004, 03:59 PM#1
Elthanor
i need to know how to make it so the camera becomes lock and unlocked with the -lock and -unlock are typed in. and when u type -zoom out and
-zoom in, the camera dose in and out. plz help me. island TD has the zom in and out thing i think. :\
04-10-2004, 10:11 PM#2
Deathperception
What you want your triggers to look like is this

First to lock the camera

Event
Player - Player 1 (Red) types a chat message containing -lock as An exact match (and replicate this event for all the players in your game)

Actions
Camera - Lock camera target for (Triggering player) to (Triggering unit), offset by (0.00, 0.00) using Default rotation

To unlock the camera

Event
Player - Player 1 (Red) types a chat message containing -unlock as An exact match (and replicate this event for all the players in your game)

Actions
Camera - Reset camera for (Triggering player) to standard game-view over 0.00 seconds
(you can also change the over 0.00 seconds to make the camera smoothly move just chage the number to 5.00 seconds to see what i mean)

As for the zoom feature you would do this

Event
Player - Player 1 (Red) types a chat message containing -zoom as An exact match (and replicate this event for all the players in your game)

Actions
Camera - Set (Triggering player)'s camera Distance to target to 500.00 over 0.00 seconds
(See the number that says 500.00 if you make that number higher the camera is farther away if you make it lower the camera is closer.) (Also change the over 0.00 seconds to something like 5.00 if you wish to smooth the transition)

And finally to unzoom (for lack of a better word ^_^ )

Event
Player - Player 1 (Red) types a chat message containing -zoom out as An exact match (and replicate this event for all the players in your game)

Actions
Camera - Reset camera for (Triggering player) to standard game-view over 0.00 seconds
(Again try changing 0.00 to 5.00)

I made these actions appear just as the Worldeditor would make them if you need a demo map just PM me.

If u find this helpful please give me a rep point.
04-11-2004, 02:35 PM#3
Elthanor
thanx man! perfect!!! thats easy to work with! Rep point? i dont think i need to send a map and it might be protected, tho i never try. here it is

THANX FOR IT AGIAN! cant repay u man! ^_^ :D :8 ;) :>
04-14-2004, 06:45 AM#4
Deathperception
Glad 2 help ^_^ .