• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Need a simply camera system!

Status
Not open for further replies.
Level 12
Joined
Apr 26, 2008
Messages
830
Hello guys,
I need a simply camera system for my map, I want it to be like this:
When a player writes -cam (distance) the camera zoomes in/out the value he typed in, I want it in MUI and GUI if possible.

+rep, credits.

EDIT: for 10 players
 
Last edited:

TKF

TKF

Level 19
Joined
Nov 29, 2006
Messages
1,267
I have already one implemented in Cruiser Command


You need a Real Variable called: ZoomCam
Don't forget to set it to array [12]


When you have camera changing actions, you can always use this variable to recall the distance for that player or if you want a periodic to maintain this distance, its your choice. It depends of you want it to be permanent or a oneshot command so i made only this.


  • Cam Zoom Command
    • 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 (Brownies) types a chat message containing -cam as A substring
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Substring((Entered chat string), 1, 5)) Equal to -cam
        • Then - Actions
          • Set ZoomCam[(Player number of (Triggering player))] = (Real((Integer((Substring((Entered chat string), 6, 10))))))
          • If (ZoomCam[(Player number of (Triggering player))] Less than 1000.00) then do (Set ZoomCam[(Player number of (Triggering player))] = 1000.00) else do (Do nothing)
          • If (ZoomCam[(Player number of (Triggering player))] Greater than 5750.00) then do (Set ZoomCam[(Player number of (Triggering player))] = 5750.00) else do (Do nothing)
          • Camera - Set (Triggering player)'s camera Distance to target to ZoomCam[(Player number of (Triggering player))] over 1.00 seconds
        • Else - Actions
Setting a mininal zoom and max is adviced. I don't remember what max is best, but the top screen becomes black at some point.
 
Status
Not open for further replies.
Top