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

[Trigger] Game Camera Distance

Status
Not open for further replies.
Level 13
Joined
Sep 14, 2008
Messages
1,407
there is an action ( I can'r remember the name...)

its something like:

camera - set/or change (not sure).

When you choose that action you can change the thing which should be edited and there is a list of things... one of them is "distance to target" or something like that :(
 
Level 28
Joined
Jan 26, 2007
Messages
4,789

  • CamZ
    • Events
      • Player - Player 1 (Red) types a chat message containing -Distance as A substring
      • Player - Player 2 (Blue) types a chat message containing -Distance as A substring
      • Player - Player 3 (Teal) types a chat message containing -Distance as A substring
      • Player - Player 4 (Purple) types a chat message containing -Distance as A substring
      • Player - Player 5 (Yellow) types a chat message containing -Distance as A substring
      • Player - Player 6 (Orange) types a chat message containing -Distance as A substring
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Substring((Entered chat string), 11, (Length of (Entered chat String)))) Equal to Empty String
        • Then - Actions
          • Skip remaining actions
        • Else - Actions
      • Set Camera_Distance = (Real((Substring((Entered chat string), 11, (Length of (Entered chat String))))))
      • Camera - Set (Triggering player)'s camera Distance to target to Camera_Distance over 0.20 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Camera_Distance Greater than or equal to 3000.00
        • Then - Actions
          • Camera - Set (Triggering player)'s camera Distance to target to 3000.00 over 0.20 seconds
          • Set Camera_Distance = 3000.00
          • Game - Display to (All players matching ((Triggering player) Equal to (Matching player))) for 6.00 seconds the text: |c00ff0000Zoomed ou...
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Camera_Distance Less than or equal to 500.00
        • Then - Actions
          • Camera - Set (Triggering player)'s camera Distance to target to 500.00 over 0.20 seconds
          • Set Camera_Distance = 500.00
          • Game - Display to (All players matching ((Triggering player) Equal to (Matching player))) for 6.00 seconds the text: |c00ff0000Zoomed in...
        • Else - Actions
Example:
"-Distance 2600" will set the camera distance to 2600

Min = 500
Max = 3000
If you break these limits (like -distance 8000), it will automatically be set to the limit (in this case 3000).

This is one of the triggers in my map DoomRaiders ORPG (open source).
 
Status
Not open for further replies.
Top