HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Arrow key movement help AGAIN!

01-15-2007, 11:28 PM#1
Dwarf Zealot
how do i make it so only when i select the unit the camera locks onto him and you use the arrow keys but when he is not selected you can look around the map normaly
01-15-2007, 11:40 PM#2
Pyrogasm
Select:
Collapse Events
Player - Player 1 (Red) Selects a unit
Conditons
Collapse Actions
Camera - Lock camera target for (Triggering player) to (Triggering unit), offset by (0.00, 0.00) using Default rotation
Deselect:
Collapse Events
Player - Player 1 (Red) Deselects a unit
Conditions
Collapse Actions
Camera - Reset camera for (Triggering player) to standard game-view over 1.00 seconds
That might work, though I'm not sure if (Triggering Unit) in the first trigger returns a value.
01-15-2007, 11:46 PM#3
maximilianx
i tried doing what you want to do..aaaaand i think it only works if you use the specific unit event, which wont let you pick a variable
Trigger:
Selected
Collapse Events
Unit - Your unit Is Selected
Conditions
Collapse Actions
Camera - Lock camera target for Player 1 (Red) to Your Unit, offset by (0.00, 0.00) using Default rotation
Trigger - Turn on (your arrow movement trigger)

Trigger:
Deselected
Collapse Events
Unit - Your unit Is Deselected
Conditions
Collapse Actions
Camera - Reset camera for Player 1 (Red) to standard game-view over 0.00 seconds
Trigger - Turn off (your arrow movement trigger)