Posts: 133
Thanks: 1494 in 13 Posts
10 Achievements
How to get sim names?
Hello,
I need to get current sim, that I am playing and second sim, with I am interacting (that I selected).
I found
http://modthesims.info/t/548710 , that suggesting to use code
Code:
client = services.client_manager().get_first_client()
sim_info = client.active_sim.sim_info
full_name = sim_info.first_name + " " + sim_info.last_name
I think, it's from services\__init__.py file that contains functions
Code:
def get_active_sim():
client = client_manager().get_first_client()
if client is not None:
return client.active_sim
def active_sim_info():
client = client_manager().get_first_client()
if client is not None:
return client.active_sim_info
But what it will return - sim, that I playing with, or sim, which I interacting with?
If these functions return sim, that I playing with, then how to get another sim, that I interacting with?
Thank you very much!