GetOccupants function

Learn technical details about the GetOccupants function.