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!
Test Subject
Original Poster
#1 Old 17th Feb 2015 at 1:57 PM
Default Position of Sims in social interactions...
Hello,

how can I find out which of the sims in a sofa or bed social interaction is on the left (or right) side?

Thanks for any help.
Advertisement
*shrugs*
retired moderator
#2 Old 18th Feb 2015 at 12:40 AM
Good question. If you haven't already, it would be a good idea to look at existing interactions (e.g. sofa semi-globals) to see what information could be gleaned. Off the top of my head, I would think some form of the Set To Next BHAV would be used. But if you know the ID of the Sim in question, you could loop through the Slots on the object, checking the contents of each. I don't know how efficient that would be though.

I don't mind if you call me "MSD" or something for short.
Tumblr
Perhaps someday I'll have leisure time back...
Test Subject
Original Poster
#3 Old 26th Mar 2015 at 10:57 PM
I'm still working on it. There's the global function "Get in Temp 0 & 1 - Rel. and Abs. Direction - From (X) to (Y)" (0x0105) with X an Y for the object ID's of the sims. Comparing the returned values (Temp 0) for X to Y and Y to X, we get the relative position of the two sims to each other.

For the direction values, see here: Primitive "Get Direction To " (0x000C)
Back to top