• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

View Distance

Status
Not open for further replies.
Level 3
Joined
Mar 25, 2011
Messages
50
Believe me, I have googled this and looked through over 20 pages to no avail.

I'm simply looking for a trigger that when somebody types -View X (X being the distance) it will change view distance of the triggering player (Red, blue, teal etc, but only to that one person. Not like if red typed -view 2000 it changes EVERYONEs to 2000, just red.)

If possible GUI, Thanks :)
 
  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Trigger - Add to Trigger Distance <gen> the event (Player - (Player((Integer A))) types a chat message containing -view as A substring)
  • Trigger Distance
    • Events
    • Conditions
      • (Substring((Entered chat string), 1, 6)) Equal to -view
    • Actions
      • Set Distance = (Real((Substring((Entered chat string), 7, (Length of (Entered chat string))))))
      • Camera - Set (Triggering player)'s camera Distance to target to Distance over 0.00 seconds
 

Attachments

  • Distance test.w3x
    16.4 KB · Views: 193
Level 3
Joined
Mar 25, 2011
Messages
50
Yes, I went as far as to change the name of the variable simply to "Distance." It's also a "Real" type variable as well.

I've looked over my triggers atleast 50 times and they're identical to the ones you made, so I'm pretty lost. I dont know if I'm simply retarded lol, my computer is having some kind of breakdown, or what; but if there is some kind of restriction to moving your camera beyond the standard outlook that is the only thing I can think of atm...

Heck, I'll mess around with it later, and if it still doesnt work I'll remake it. Still? Then who knows :p
 
Status
Not open for further replies.
Top