• 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.

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: 201
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