• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

WC3 Zoom System

Status
Not open for further replies.
Level 4
Joined
Oct 6, 2009
Messages
85
hey guys im working in my map and i want to know how to make a zoom system like when i type -zoom 400 the camera view turns into 400 just like that can someone tell me how?
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • Untitled Trigger 010
    • Events
      • Player - Player 1 (Red) types a chat message containing -zoom as A substring
      • Player - Player 2 (Blue) types a chat message containing -zoom as A substring
      • Player - Player 3 (Teal) types a chat message containing -zoom as A substring
    • Conditions
      • (Substring((Entered chat string), 1, 5)) Equal to -zoom
    • Actions
      • Set r1 = (Real((Substring((Entered chat string), 7, (Length of (Entered chat string))))))
      • Camera - Set (Triggering player)'s camera Distance to target to r1 over 2.00 seconds
 
Status
Not open for further replies.
Top