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

Status
Not open for further replies.
Level 19
Joined
May 1, 2008
Messages
1,130
i want to make a camera system liek camera near-mid-far type
i want so if u type lets say -cf (camera far) the camera will ya know... move up into teh sky and gives u a greather field of view.
and so that i can rotate or zoom in without teh camera jumping to its initial setings
how do i do that?
 
I recomend This:
  • Camera Distance Set
    • Events
    • Conditions
      • (Substring((Entered chat string), 1, 4)) Equal to -cd(
    • Actions
      • Set TempReal = (Real((Substring((Entered chat string), 5, 10))))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TempReal Greater than 5000.00
        • Then - Actions
          • Set TempReal = 5000.00
        • Else - Actions
      • Camera - Set (Triggering player)'s camera Distance to target to TempReal over 2.00 seconds
And the events are added like this:
  • Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Trigger - Add to Camera Distance Set <gen> the event (Player - (Picked player) types a chat message containing -cd( as A substring)
The reason I add them in my init trigger is because I hate adding all those events one by one.
 
Status
Not open for further replies.
Top