Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
Quick Reply
Search this Thread
Test Subject
Original Poster
#1 Old 2nd Jul 2022 at 2:48 AM
Default (Scripting) Creating an LTR Condition
I need to check the LTR between two sims and set a condition, because my script gets stuck in a certain area if an interaction is not available. However, I'm having problems with the LTR commands needing an object reference. How do I retrieve the LTR between two sims and check it against an integer or float, such as if OurLTR >= 20?
Advertisement
Field Researcher
#2 Old 2nd Jul 2022 at 10:05 AM
Here is how I checked hte relationship value in my interaction.
It gives back the bar you see in the UI
Code:
float relationship = (float)Target.GetRelationship(Actor, false).CurrentLTRLiking;
Test Subject
Original Poster
#3 Old 3rd Jul 2022 at 10:13 PM
This did it! Thank you!
Back to top