HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Panning camera to reviving hero?

02-08-2003, 11:25 PM#1
Hakujin
For some reason my camera doesn't pan. Here's my trigger:

[Event]
Unit dies

[Condition]
Unit type = Hero

[Action]
XP penalty
gold penalty
WAIT (yeah im gonna replace it with a timer)
revive dying hero
pan camera for (owner of reviving hero) to position of reviving hero over 1 second
-----------------------------------

Hmmm...maybe i just figured it out. Should I replace "owner of reviving hero" with "owner of dying unit?" I think that should work. Why do I always figure this stuff out when typing messages for help? This is the 3rd time!
02-09-2003, 12:08 AM#2
DaKaN
when a hero dies, the unit is still at the last place he died first of all, so just panning it to the hero will work (make a varible and store that unit in it)

2nd, reviving unit is for when you use a building to revive.