Setting the X of a camera

dashival

New Member
Reaction score
11
I want to have one camera per player, and then lock each player's camera to their heros' X position, so it follows the player's horizontal movement, but not vertical. Is it possible to move a camera that's preplaced? If not, how else can I make the player's screen follow their hero along the X axis, at a certain Y position?
 

wonderpriest

New Member
Reaction score
18
Yes you can change the position of a pre-placed camera. Their only purpose is to store the data visually (x,y,z and such), then the game fetches that data and changes the "game camera" accordingly.
 

dashival

New Member
Reaction score
11
I think I found a way to do it without having preplaced cameras in the editor.. Thanks, though. :)
Code:
Camera
    Events
        Time - Every 0.05 seconds of game time
    Conditions
    Actions
        Set L = (Point((X of (Position of Player 0000 <gen>)), 6846.12))
        Camera - Pan camera for Player 1 (Red) to L over 0.00 seconds
        Custom script:   call RemoveLocation(udg_L)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top