PJMail Posted October 20, 2020 Author Share Posted October 20, 2020 So you see my issue?Setoutfit has 2 variants actorbase.setoutfit() and actor.setoutfit(), yet on an Actor not based on a leveledNPC, it always acts like actorbase.setoutfit()...VERY annoying. Link to comment Share on other sites More sharing options...
EgoBallistic Posted June 6, 2021 Share Posted June 6, 2021 (edited) I stumbled across this thread while looking for something different but related. I happened to test this out earlier and the results are not as straightforward as I had thought. Calling SetOutfit() on an Actor that is based on a simple, non-templated, non-leveled ActorBase changes the outfit of the ActorBase. Calling SetOutfit() on an Actor that is based on a LeveledActor changes the outfit of the ActorBase -- whichever ActorBase was chosen by the LeveledActor will have its Outfit permanently changed. Calling SetOutfit() on an Actor that is based on a templated ActorBase only changes the temporary LeveledActorBase. It does not change any of the template actors. I discovered all this through trial and error. I have been working on a mod where leveled NPCs are placed, then given one outfit, and depending on what the player does they will receive a different outfit later. Directly using a LeveledActor caused all the actors to eventually have the wrong outfits. But using an ActorBase that is templated from that LeveledActor works as expected, I can change the outfits of individual NPCs without affecting the others. Edited June 6, 2021 by GrumpyOldGrognard Link to comment Share on other sites More sharing options...
Recommended Posts