1. #1
    Pandaren Monk shanthi's Avatar
    10+ Year Old Account
    Join Date
    Oct 2011
    Location
    California
    Posts
    1,775

    Turning New Models On and Off by Script

    Is there a scripting command for turning the new characters models off and on? I'd like to create a simple homebrew addon that turns on the new models with races I like them for and turns them off with races I don't, automatically, rather than having to manually do it every time in the Advanced options.

    Thanks for any help!
    That is not dead which can eternal lie.
    And with strange aeons even death may die.

  2. #2
    Moderator Aucald's Avatar
    10+ Year Old Account
    Epic Premium
    Join Date
    Oct 2009
    Location
    Philadelphia, PA-US
    Posts
    45,933
    Quote Originally Posted by shanthi View Post
    Is there a scripting command for turning the new characters models off and on? I'd like to create a simple homebrew addon that turns on the new models with races I like them for and turns them off with races I don't, automatically, rather than having to manually do it every time in the Advanced options.

    Thanks for any help!
    To turn new models off:
    /console hdPlayerModels 0

    To turn new models on:
    /console hdPlayerModels 1

    To toggle between settings:
    /run SetCVar("hdPlayerModels",1-GetCVar("hdPlayerModels"))
    "We're more of the love, blood, and rhetoric school. Well, we can do you blood and love without the rhetoric, and we can do you blood and rhetoric without the love, and we can do you all three concurrent or consecutive. But we can't give you love and rhetoric without the blood. Blood is compulsory. They're all blood, you see." ― Tom Stoppard, Rosencrantz and Guildenstern are Dead

  3. #3
    Pandaren Monk shanthi's Avatar
    10+ Year Old Account
    Join Date
    Oct 2011
    Location
    California
    Posts
    1,775
    Much appreciated!

    Edit: Those appear to be scripting commands that would be used in macros. How would I change that variable in addon?
    Last edited by shanthi; 2016-03-30 at 07:47 PM.
    That is not dead which can eternal lie.
    And with strange aeons even death may die.

  4. #4
    Quote Originally Posted by shanthi View Post
    Much appreciated!

    Edit: Those appear to be scripting commands that would be used in macros. How would I change that variable in addon?
    Should be able to just remove the /run from the toggle. For the other two just use the SetCVar("hrPlayerModels", 0) SetCVar("hrPlayerModels", 1)
    Author of Instance Profit Tracker
    Find out how much gold you earn soloing raids and dungeons

    Curse | GitHub
    WowInterface

  5. #5
    Pandaren Monk shanthi's Avatar
    10+ Year Old Account
    Join Date
    Oct 2011
    Location
    California
    Posts
    1,775
    Quote Originally Posted by Arcilux View Post
    Should be able to just remove the /run from the toggle. For the other two just use the SetCVar("hrPlayerModels", 1)
    Gotcha, thanks a lot.
    That is not dead which can eternal lie.
    And with strange aeons even death may die.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •