Ncrackz
New Member
- Reaction score
- 2
Hi, recently I have made a Warchaser like map and Like any warchaser map there is a camera that follows you and you can't move it. I was wondering how to keep the Camera locked on the player even if he bought a new Character (Basically Arthas Bought Illidan Arthas is dead All you have is illidan) now the camera becomes locked on to the starting point of my map And Was wondering how Can I make the camera locked on illidan heres my code:
Code:
Illidan Snap
Events
Unit - A unit enters Unit spawn cam swap <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Illidari Shatterer
Actions
If ((Owner of (Entering unit)) Equal to Player 1 (Red)) then do (Set Player1 = (Sold unit)) else do (Do nothing)
If ((Owner of (Entering unit)) Equal to Player 2 (Blue)) then do (Set Player2 = (Sold unit)) else do (Do nothing)
If ((Owner of (Entering unit)) Equal to Player 3 (Teal)) then do (Set Player3 = (Sold unit)) else do (Do nothing)
If ((Owner of (Entering unit)) Equal to Player 4 (Purple)) then do (Set Player4 = (Sold unit)) else do (Do nothing)
If ((Owner of (Entering unit)) Equal to Player 6 (Orange)) then do (Set Player6 = (Sold unit)) else do (Do nothing)
If ((Owner of (Entering unit)) Equal to Player 7 (Green)) then do (Set Player7 = (Sold unit)) else do (Do nothing)
Trigger - Run Snap Camera to Player Copy <gen> (checking conditions)
Camera - Apply CamStart1 <gen> for (Owner of (Sold unit)) over 1.00 seconds
Camera - Lock camera target for (Owner of (Sold unit)) to (Sold unit), offset by (0.00, 0.00) using Default rotation