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

Camera Zooming/Panning

Status
Not open for further replies.
Level 9
Joined
Mar 27, 2009
Messages
309
First of all I'd like to give The Hive Workshop a great +rep for helping me as a resource for great tutorials, models, icons, and whatnot.

Ive been using the workshop for a few years but have yet to make an account here... Now i figured why not?

Anyway, Im trying to create a camera zooming/panning system controlled by player text input.

EX. -zoom (####) -pan (####)

I already know how to set up the trigger and use if then else's to check what the substring is, my question is just how to manipulate the camera in such a way.

Ive checked a lot of the tutorials section and havent come up with anything... perhaps i just missed it?

Your help is greatly appreciated! It will move me closer to the release of my newest map :smile:
 
Last edited:
Level 8
Joined
Aug 19, 2007
Messages
294
Do you mean like that:
  • Camera
    • 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
      • Player - Player 7 (Green) types a chat message containing -cam as A substring
      • Player - Player 8 (Pink) types a chat message containing -cam as A substring
      • Player - Player 9 (Gray) types a chat message containing -cam as A substring
      • Player - Player 10 (Light Blue) types a chat message containing -cam as A substring
      • Player - Player 11 (Dark Green) types a chat message containing -cam as A substring
      • Player - Player 12 (Brown) types a chat message containing -cam as A substring
    • Conditions
    • Actions
      • Set Some_Real = (Real((Substring((Entered chat string), ((Length of (Matched chat string)) + 1), (Length of (Entered chat string))))))
      • Camera - Set (Triggering player)'s camera Height Offset to Some_Real over 0.00 seconds
Ex -cam 1000
 
Status
Not open for further replies.
Top