Jump to content

Is there a console command to force a refresh of a property?


Recommended Posts

You mean resetting the variable that a script property currently points to to the one defined in the editor?

I don't know of any but you can change a non Const property both in the Console (SetPapyrusVar or SetPV) and from a Papyrus script (theScript.propertyName = newVariable).

Link to comment
Share on other sites

Thanks for your reply,

I forgot to mention that the property I created is a strings array. It's working but then I added more strings into the array, but of course they are not showing up in game. So I was wondering if there was a command something like ReloadProperty "Scriptname:Propertyname".

Link to comment
Share on other sites

  • 3 weeks later...

ReloadScript *should* work but sometimes the game will keep the old values and trace something akin to "values in property x does not match values on y. Using version from save." In that case a reinitiation i.e. leaving and returning to cell should work. You can also manually re-inject the ref using 'APS "Scriptpath:Scriptname" ' on a selected or PRID:ed ref. That usually works.

  • Like 1
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...