#2
1st Aug 2018 at 5:10 PM
Last edited by Battery : 1st Aug 2018 at
5:21 PM.
Posts: 433
Thanks: 782 in 6 Posts
10 Achievements
ICollection<Trait> traits = Sim.ActiveActor.TraitManager.List;
Sim.ActiveActor can ofc be replaced with the desired actor
you didnt ask but to make this post a bit bigge here is how to get traitnames as a string ^^
ICollection<Trait> traits = Sim.ActiveActor.TraitManager.List;
string abc ="";
foreach (Trait t in traits)
{
abc += t.TraitName(Sim.ActiveActor.IsFemale) + "\n";
}
and now abc contains your traitnames