Replies: 3 (Who?), Viewed: 208 times.
Lab Assistant
Original Poster
#1 Old 30th Nov 2020 at 9:44 PM
Default Making a interaction only appear to unselected sims
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?
Advertisement
Field Researcher
#2 Old 30th Nov 2020 at 10:08 PM
Just add a additional check in the Test method to exclude the Actor

so if Actor == Target return false
Scholar
#3 Old 2nd Dec 2020 at 10:39 AM
Will Actor.SimDescription.SimDescriptionID == Target.SimDescription.SimDescriptionID be faster?

If you like my mods. Consider supporting me on Patreon

Follow me on
Twitter
Instagram
Forum Resident
#4 Old 3rd Dec 2020 at 12:49 AM
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
Back to top