Replies: 1 (Who?), Viewed: 334 times.
#1
13th Apr 2023 at 3:59 AM
Advertisement
#2
13th Apr 2023 at 6:41 AM
Last edited by MonocoDoll : 13th Apr 2023 at 6:55 AM.
|
Posts: 268
Thanks: 1181 in 17 Posts
Posts: 268
Thanks: 1181 in 17 Posts
public static bool simIsACop(Sim sim) { if (sim != null) { CareerManager careerManager = sim.CareerManager; if(careerManager != null) { Occupation occupation = careerManager.Occupation; int level = occupation.Level; if (careerManager.Occupation is LawEnforcement && level >=5) { StyledNotification.Show(new StyledNotification.Format("Target Sim is a Lieutenant Officer", StyledNotification.NotificationStyle.kDebugAlert)); } else if (careerManager.Occupation is Military) { StyledNotification.Show(new StyledNotification.Format("Target Sim is a Soldier", StyledNotification.NotificationStyle.kDebugAlert)); } else if (careerManager.Occupation is LawEnforcement) { StyledNotification.Show(new StyledNotification.Format("Target Sim is a Cop", StyledNotification.NotificationStyle.kDebugAlert)); } } } return false; }
|
This site is not endorsed by or affiliated with Electronic Arts, or its licensors. Trademarks are the property of their respective owners. Game content and materials copyright Electronic Arts Inc. and its licensors. All Rights Reserved.
Site version: v3.5.0. ModTheSims, ModTheSims2 and MTS2 © 2004-2023.