corrado33 Posted October 6, 2018 Author Share Posted October 6, 2018 Have a function on the script where you want to change the states then call that function from some other script. GotoState() is an available function in any script and can be externally accessed. EDIT: I found what I was thinking of, but on checking it I'm not sure how useful it will be to you. The person was trying to execute a swap of their modded ingredients, but only while crafting, in order to avoid breaking alchemy, and I went with an inventory filter solution. Still, on the offchance: https://forums.nexusmods.com/index.php?/topic/6580351-need-help-speeding-up-my-script/page-3 I thought about calling the function from another script, but wasn't sure it would work. Thanks both of you! :) Link to comment Share on other sites More sharing options...
Recommended Posts