• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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