1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Ride into the sunset with the 32nd Modeling Contest. The contest is optionally paired. Best of luck, people!
    Dismiss Notice
  4. This adventure has come to an end. Congratulate our heroes in the 16th Mini Mapping Contest Results.
    Dismiss Notice
  5. From the gates of hell, the 5th Special Effect Contest Results have emerged.
    Dismiss Notice
  6. Race against the odds and Reforge, Don't Refund. The 14th Techtree Contest has begun!
    Dismiss Notice
  7. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Camera Zoom with Mouse Scroll..

Discussion in 'World Editor Help Zone' started by Rocker742, Aug 2, 2009.

  1. Rocker742

    Rocker742

    Joined:
    Jul 19, 2007
    Messages:
    94
    Resources:
    1
    Maps:
    1
    Resources:
    1
    So currently I'm working on a map that uses a 3rd person camera on your hero.. and I was wondering how to make it so when you scroll up it zooms in and you scroll down you zoom out with your mouse scroll. Currently for that function I use the Up and Down Arrow keys, which I feel is kind of a hassle, moving your hands everywhere and whatnot..

    For good measure here are some of the triggers for my Camera(s)

    • Red Camera
      • Events
        • Time - Every 0.01 seconds of game time
      • Conditions
      • Actions
        • Camera - Lock camera target for Player 1 (Red) to CameraUnit[1], offset by (0.00, 0.00) using The unit's rotation
        • Camera - Set Player 1 (Red)'s camera Distance to target to CameraDistance[1] over 0.10 seconds
        • Camera - Set Player 1 (Red)'s camera Angle of attack to 345.00 over 0.10 seconds
        • Camera - Set Player 1 (Red)'s camera Height Offset to 100.00 over 0.10 seconds
        • Camera - Set Player 1 (Red)'s camera Rotation to (Facing of CameraUnit[1]) over 0.10 seconds


    • Camera Away Red
      • Events
        • Player - Player 1 (Red) Presses the Down Arrow key
      • Conditions
        • (Integer(CameraDistance[(Player number of (Triggering player))])) Less than 2000
      • Actions
        • Set CameraDistance[(Player number of (Triggering player))] = (CameraDistance[(Player number of (Triggering player))] + 100.00)


    • Camera Closer Red
      • Events
        • Player - Player 1 (Red) Presses the Up Arrow key
      • Conditions
        • (Integer(CameraDistance[(Player number of (Triggering player))])) Greater than 0
      • Actions
        • Set CameraDistance[(Player number of (Triggering player))] = (CameraDistance[(Player number of (Triggering player))] - 100.00)


    Help would be greatly appreciated :grin: ..

    EDIT: I've seen the scroll able to manipulate the camera's zooming in D3W.. so I know its possible.. but I'm hopeless D:
     
  2. Rocker742

    Rocker742

    Joined:
    Jul 19, 2007
    Messages:
    94
    Resources:
    1
    Maps:
    1
    Resources:
    1
  3. krisserz

    krisserz

    Joined:
    Feb 28, 2009
    Messages:
    1,945
    Resources:
    2
    Spells:
    2
    Resources:
    2
    RULES - "Threads cannot be bumped within 48 hours of the most recent post."