Welcome to
Mod The Sims
Online: 1082
Have an account? Sign in:
If you don't have an account, why not sign up now? It's free!
Other sites: SimsWiki
Reply  Replies: 3 (Who?), Viewed: 209 times.
Search this Thread
Old 30th Nov 2020, 9:44 PM DefaultMaking a interaction only appear to unselected sims #1
Original Poster

Lab Assistant

Join Date: Jun 2017
Posts: 130
Thanks: 116 in 2 Posts
4 Achievements

Basically, that. My swordfighting mod shows the duel interaction even in the selected sim, as a self-interaction, and I don't want a self-interaction. Is there some form of getting rid of this problem, through using the test() method?
Old 30th Nov 2020, 10:08 PM #2
Field Researcher

Join Date: Dec 2008
Posts: 385
Thanks: 825 in 5 Posts
8 Achievements

Just add a additional check in the Test method to exclude the Actor

so if Actor == Target return false
Old 2nd Dec 2020, 10:39 AM #3

Join Date: Aug 2014
Posts: 1,064
Thanks: 1561 in 30 Posts
9 Achievements

Will Actor.SimDescription.SimDescriptionID == Target.SimDescription.SimDescriptionID be faster?

If you like my mods. Consider supporting me on Patreon

Follow me on
Old 3rd Dec 2020, 12:49 AM #4
Forum Resident

Join Date: Oct 2005
Posts: 722
Thanks: 7573 in 18 Posts
12 Achievements

No. I strongly doubt it.

The runtime will only check if those two Sim objects point to the same instance.

Find my Mods: Here at MTS, over at Simlogical

Section jump:

Powered by MariaDB Some icons by http://dryicons.com.