Welcome to
Mod The Sims
Online: 1082
News:
Have an account? Sign in:
pass:
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
CyrusBanefort
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
Battery
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
PuddingFace
Scholar

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
Twitter
Instagram
Old 3rd Dec 2020, 12:49 AM #4
Consort
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
Reply


Section jump:


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