HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Center on Unit

07-26-2006, 05:56 PM#1
ViciousBunny
How do i make it so the screen focuses on your hero and the hero is always selected?
07-26-2006, 06:21 PM#2
Alevice
Either
Trigger:
Method1
Collapse Events
Map initialization
Conditions
Collapse Actions
Camera - Lock camera target for Player 1 (Red) to YourHero, offset by (0.00, 0.00) using Default rotation
Selection - Select YourHero
Game - Disable selection and deselection functionality (Enable selection circles)
Or
Trigger:
Method2A
Collapse Events
Time - Every 0.30 seconds of game time
Conditions
Collapse Actions
Set YourHeroPoint = (Position of YourHero)
Camera - Pan camera for Player 1 (Red) to YourHeroPoint over 2.00 seconds
Custom script: call RemoveLocation (udg_YourHeroPoint)
Trigger:
Method2b
Collapse Events
Player - Player 1 (Red) Selects a unit
Collapse Conditions
(Triggering unit) Not equal to YourHero
Collapse Actions
Selection - Clear selection for Player 1 (Red)
Selection - Select YourHero
07-26-2006, 07:24 PM#3
iNfraNe
For 0.3 periods you might want to tell him about that it leaks memory..
07-26-2006, 08:38 PM#4
Alevice
Shhh! Don't tell him!
07-26-2006, 08:40 PM#5
darkwulfv
hey now, that's not nice... :s. Everyone has the rigght to know, especially this noob. (He's my friend, I know him, he's a triggering noob... He doesn't know whhat memory leaks are)
07-26-2006, 09:01 PM#6
Alevice
Pfft, pansies.

Fixed.