• 🏆 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!

[Solved] Camera Unlock Resetting Field of View

Status
Not open for further replies.
Level 12
Joined
Feb 11, 2008
Messages
809
How can i prevent my Field of View from being reset when unlocking game camera? heres my triggers im currently trying as a reference.

  • Camera Zoom
    • Events
      • Player - Player 1 (Red) types a chat message containing -cam as A substring
      • Player - Player 2 (Blue) types a chat message containing -cam as A substring
      • Player - Player 3 (Teal) types a chat message containing -cam as A substring
      • Player - Player 4 (Purple) types a chat message containing -cam as A substring
      • Player - Player 5 (Yellow) types a chat message containing -cam as A substring
      • Player - Player 6 (Orange) types a chat message containing -cam as A substring
    • Conditions
    • Actions
      • Set Temp_Player = (Triggering player)
      • Set Temp_PlayerGroup = (Player group(Temp_Player))
      • Set Temp_String = (Entered chat string)
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Integer((Substring(Temp_String, 6, 8)))) Greater than or equal to (>=) 20
            • (Integer((Substring(Temp_String, 6, 8)))) Less than or equal to (<=) 120
          • Then - Actions
            • Game - Display to Temp_PlayerGroup the text: (Camera set to + ((Substring(Temp_String, 6, 8)) + .))
            • Camera - Set Temp_Player's camera Field of view to (Real((Substring(Temp_String, 6, 8)))) over 1.00 seconds
          • Else - Actions
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Substring(Temp_String, 6, 11)) Equal to (==) normal
          • Then - Actions
            • Game - Display to Temp_PlayerGroup the text: Camera set to norma...
            • Camera - Set Temp_Player's camera Field of view to 70.00 over 1.00 seconds
          • Else - Actions
      • Set Player_CameraFOV[(Player number of Temp_Player)] = (Field of view of the current camera view)
  • Camera Lock
    • Events
      • Player - Player 1 (Red) types a chat message containing -lock as An exact match
      • Player - Player 2 (Blue) types a chat message containing -lock as An exact match
      • Player - Player 3 (Teal) types a chat message containing -lock as An exact match
      • Player - Player 4 (Purple) types a chat message containing -lock as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -lock as An exact match
      • Player - Player 6 (Orange) types a chat message containing -lock as An exact match
    • Conditions
    • Actions
      • Set Temp_Player = (Triggering player)
      • Set Temp_Integer = (Player number of Temp_Player)
      • Game - Display to (Player group(Temp_Player)) the text: |cffff0800Camera lo...
      • Camera - Lock camera target for Temp_Player to Players_Heros[Temp_Integer], offset by (0.00, 0.00) using The unit's rotation
      • Set CameraLockedForPlayer[Temp_Integer] = True
  • Camera UnLock
    • Events
      • Player - Player 1 (Red) types a chat message containing -unlock as An exact match
      • Player - Player 2 (Blue) types a chat message containing -unlock as An exact match
      • Player - Player 3 (Teal) types a chat message containing -unlock as An exact match
      • Player - Player 4 (Purple) types a chat message containing -unlock as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -unlock as An exact match
      • Player - Player 6 (Orange) types a chat message containing -unlock as An exact match
    • Conditions
    • Actions
      • Set Temp_Player = (Triggering player)
      • Set Temp_Integer = (Player number of Temp_Player)
      • Game - Display to (Player group(Temp_Player)) the text: |cffff0800Camera un...
      • Camera - Reset camera for Temp_Player to standard game-view over 0.00 seconds
      • Camera - Set Temp_Player's camera Field of view to Player_CameraFOV[Temp_Integer] over 0.00 seconds
      • Set CameraLockedForPlayer[Temp_Integer] = False
Please and thank you for the help!

EDIT*

This trigger manages to change the Field of View but for some reason it is not correct and instead of zooming out it zooms further in.

EDIT**

SOLVED i ended up finding out a workaround and will post updated triggers tom.
 
Last edited:
Status
Not open for further replies.
Top