Get all player's colonist pawns? (in the world)

Started by Kiame, June 19, 2017, 06:34:23 PM

Previous topic - Next topic

Kiame

I'm stumped and I think I'll feel stupid once this is answered...

How do you get all of the player's colonist pawns - including those on other maps/caravans?

I've tried iterating through Find.WorldPawns.AllPawnsAlive which contains all non-player pawns

Thank you!

Kiame

GAH after 3 hours i finally thought to look for "ofPlayer" in ilSpy... and found the answer

PawnsFinder.AllMaps_SpawnedPawnsInFaction(Faction.OfPlayer)

Leaving this here for anyone in the future  :)