Jump to content

SetOutfit does not work on Actors, only Actorbase


PJMail

Recommended Posts

  • 7 months later...

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 by GrumpyOldGrognard
Link to comment
Share on other sites

  • Recently Browsing   0 members

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