• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Mouse scroll camera help

Status
Not open for further replies.
Level 12
Joined
Mar 10, 2008
Messages
869
  • SetCamera
    • Events
      • Time - Every 0.02 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in CameraGroup and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Picked unit) Equal to ClickedUnit[(Player number of (Owner of (Picked unit)))]
            • Then - Actions
              • Set CamPoint = (Position of (Picked unit))
              • Custom script: set udg_CamHeight = GetLocationZ(udg_CamPoint)
              • Camera - Set (Owner of (Picked unit))'s camera Height Offset to CamHeight over 0.10 seconds
              • Camera - Set (Owner of (Picked unit))'s camera Distance to target to 500.00 over 0.10 seconds
              • Camera - Set (Owner of (Picked unit))'s camera Angle of attack to 320.00 over 0.10 seconds
              • Camera - Pan camera for (Owner of (Picked unit)) to CamPoint over 0.10 seconds
              • Camera - Set (Owner of (Picked unit))'s camera Rotation to (Facing of (Picked unit)) over 0.25 seconds
              • Custom script: call SetCameraFieldForPlayer(GetOwningPlayer(GetEnumUnit()),CAMERA_FIELD_ZOFFSET, GetCameraField(CAMERA_FIELD_ZOFFSET) + udg_CamHeight - GetCameraTargetPositionZ() + 75, 0.10)
              • Custom script: call RemoveLocation(udg_CamPoint)
            • Else - Actions
This is my Third Person camera.
If someone uses Page Up or the mouse scroll, it moves in so people can't see as before.

Does anyone know how to fix the problem or prevent the game from applying the use of page up or mouse scroll?
 
Status
Not open for further replies.
Top