I would like, through scripting, to find either a random Actor, or the Nth Actor based on their membership within a faction.
So for example MyActor = GetActorsInFaction(MyFaction)[0] or MyActor = GetRandomActorInFaction(MyFaction)
All the FindActor scripts on the wiki seem to be based on Distance from the player, wheras I don't care if this specific actor is being physically rendered or is even alive (actually, I do care about that, but for the purposes of the request I don't).
I plan on using it to create, well, a shape-shifter. Take on the apperence of another actor. Like a random stormpike, or the players Husband/Wife/Spouse/Life Partner/Galley Slave but I'm utterly stumped as to how to get a reference to an actor by faction.
Any help would be appreciated.