Korodic Posted July 5, 2016 Share Posted July 5, 2016 Trying to use this function for an object that lets you control a certain companion remotely. I know that my actor is selected as other functions work correctly. But when I call this one nothing happens. I did get it to work though, but only if the player is looking at the actor when this code is executed (playing around with different wait timers confirmed that is definitely whats happening). Has anyone else used this code before? In what setting were you able to get it to work? SetCommandState in command line does work without issue (at any distance, without looking at the companion), but does not behave in papyrus from what im seeing. Link to comment Share on other sites More sharing options...
registrator2000 Posted July 7, 2016 Share Posted July 7, 2016 SetCommandState appears to behave differently in Papyrus and as a console command. The Papyrus version requires that you're aimed at the target, while the console version doesn't. In Companion Command and Tactics (source available on page), I instead used Actor.SetDoingFavor() - it has a flag to indicate whether the actor should be commanded in workshop mode or normal command mode - to allow for hotkey-activated remote commands without having to aim at companions first. Link to comment Share on other sites More sharing options...
Recommended Posts