PDA

View Full Version : SetView: Why do you hate me?



luxlunae
07-11-2012, 11:08 PM
So I tried to follow khat's guide for getting setview to work here

http://genus-industri.us/wp/2011/11/09/hkn-script-v2-%E2%80%93-part-5/

and it just didn't work. when I did my original log in all the characters were at the same zoom but
/script SetView(4) apparently did nothing because when I hit my isboxer keybind for

/script SetView (#); SetView (#) nothing happened (other than the splash that told me the macro had indeed gone off). Thoughts?

EaTCarbS
07-11-2012, 11:34 PM
There are keybinds in game that you can set for certain camera angles (If you are refering to WoW). It seems like you're making it more complicated than it needs to be.

Ughmahedhurtz
07-11-2012, 11:48 PM
Debug steps are in order.

Can you skew the camera off to one side, type "/run SetView(4)" and see the camera swing back around to the angle you set for view 4? If not, then the macro isn't broken, you just didn't set view 4 up.

[edit] Reading your OP again, it looks like you tried to save the current view with SetView(x). That won't work. SetView(x) sets your current view to stored view x. SaveView(x) saves the view.

http://www.wowwiki.com/API_SaveView

[edit2]
There are keybinds in game that you can set for certain camera angles (If you are refering to WoW). It seems like you're making it more complicated than it needs to be.

Why waste a perfectly good keybind when you can type a simple macro command into your common attack/AoE macros that actually need this? Sounds like you're making it more complicated than it needs to be. ;)

JohnGabriel
07-12-2012, 02:42 AM
The one question I know the answer to, and you beat me to it. (I messed up SetView/SaveView when I did it too.)

Darn I'll never get to help anyone. ;)