Camera Warchasers Control.

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
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
Maybe the the trigger 'Run Snap Camera to Player Copy <gen>' is at fault? Otherwise it looks fine.
 

Ncrackz

New Member
Reaction score
2
Heres the code for the Snap cam
Code:
Snap Camera to Player Copy
    Events
        Time - Every 2.00 seconds of game time
    Conditions
    Actions
        If (bPlayerDead[1] Equal to False) then do (Camera - Apply CamStart1 <gen> for Player 1 (Red) over 1.00 seconds) else do (Camera - Apply CamStart1 <gen> for Player 1 (Red) over 1.00 seconds)
        If (bPlayerDead[2] Equal to False) then do (Camera - Apply CamStart1 <gen> for Player 2 (Blue) over 1.00 seconds) else do (Camera - Apply CamStart1 <gen> for Player 2 (Blue) over 1.00 seconds)
        If (bPlayerDead[3] Equal to False) then do (Camera - Apply CamStart1 <gen> for Player 3 (Teal) over 1.00 seconds) else do (Camera - Apply CamStart1 <gen> for Player 3 (Teal) over 0.00 seconds)
        If (bPlayerDead[4] Equal to False) then do (Camera - Apply CamStart1 <gen> for Player 4 (Purple) over 1.00 seconds) else do (Camera - Apply CamStart1 <gen> for Player 4 (Purple) over 1.00 seconds)
        If (bPlayerDead[6] Equal to False) then do (Camera - Apply CamStart1 <gen> for Player 6 (Orange) over 1.00 seconds) else do (Camera - Apply CamStart1 <gen> for Player 6 (Orange) over 1.00 seconds)
        If (bPlayerDead[7] Equal to False) then do (Camera - Apply CamStart1 <gen> for Player 7 (Green) over 1.00 seconds) else do (Camera - Apply CamStart1 <gen> for Player 7 (Green) over 1.00 seconds)
        If (bPlayerDead[1] Equal to True) then do (Camera - Lock camera target for Player 1 (Red) to Player1, offset by (0.00, 0.00) using Default rotation) else do (Camera - Lock camera target for Player 1 (Red) to Player1, offset by (0.00, 0.00) using Default rotation)
        If (bPlayerDead[2] Equal to False) then do (Camera - Lock camera target for Player 2 (Blue) to Player2, offset by (0.00, 0.00) using Default rotation) else do (Camera - Lock camera target for Player 2 (Blue) to Player2, offset by (0.00, 0.00) using Default rotation)
        If (bPlayerDead[3] Equal to False) then do (Camera - Lock camera target for Player 3 (Teal) to Player3, offset by (0.00, 0.00) using Default rotation) else do (Camera - Lock camera target for Player 3 (Teal) to Player3, offset by (0.00, 0.00) using Default rotation)
        If (bPlayerDead[4] Equal to False) then do (Camera - Lock camera target for Player 4 (Purple) to Player4, offset by (0.00, 0.00) using Default rotation) else do (Camera - Lock camera target for Player 4 (Purple) to Player4, offset by (0.00, 0.00) using Default rotation)
        If (bPlayerDead[6] Equal to False) then do (Camera - Lock camera target for Player 6 (Orange) to Player6, offset by (0.00, 0.00) using Default rotation) else do (Camera - Lock camera target for Player 6 (Orange) to Player6, offset by (0.00, 0.00) using Default rotation)
        If (bPlayerDead[7] Equal to False) then do (Camera - Lock camera target for Player 7 (Green) to Player7, offset by (0.00, 0.00) using Default rotation) else do (Camera - Lock camera target for Player 7 (Green) to Player7, offset by (0.00, 0.00) using Default rotation)
        Hero - Make Player 1 (Red) Heroes gain 200.00% experience from future kills
        Hero - Make Player 2 (Blue) Heroes gain 200.00% experience from future kills
        Hero - Make Player 3 (Teal) Heroes gain 200.00% experience from future kills
        Hero - Make Player 4 (Purple) Heroes gain 200.00% experience from future kills
        Hero - Make Player 6 (Orange) Heroes gain 200.00% experience from future kills
        Hero - Make Player 7 (Green) Heroes gain 200.00% experience from future kills
 

demotry241

Don't Ever Categorize Yourself.
Reaction score
105
if tavern.

unit sells a unit

action

lock camera of buying unit to sold unit..


if a hero arena selection


unit enters <come here , this is lich <gen> >

then

kill entering unit
create 1 lich for owner of triggering unit at START AREA<gen>
lock camera for owner of triggering unit to last created unit....

etc

btw.. I CAN BREAK YOUR CAMERA by pressing
Alt+C
 

Ncrackz

New Member
Reaction score
2
Hmm the lock still doesn't work, And its from a tavern soo I have no idea how this camera thing works.
 

Fluffball

Well-Known Member
Reaction score
35
Maybe start a periodic timer (that expires really quickly) that starts when a player picks a hero then, pan the camera for the player to the spot of the hero?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top