Quick Reply
Search this Thread
Test Subject
Original Poster
#1 Old 5th Sep 2026 at 10:42 PM
Default How to make an interaction only for a human sim with a dog?
I'm new to script modding. I'm trying to add an interaction for a human sim (Child or above) to be able to click on a dog and tell the dog they are a "Good Dog" (that's the name of the interaction). How can I do this? Here is part of the code.

protected override bool Test(Sim actor, Sim target, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback)
{
if (actor.SimDescription.ChildOrAbove)
{
return true;
}
return false;
}

Is there a way to make it so the interaction only appears when a human sim clicks on a dog? If so, what is the code? Thanks!
Reaper
staff: moderator
#2 Old 6th Sep 2026 at 3:34 PM
target.IsADogSpecies or target.SimDescription.IsADogSpecies

To exclude puppies: !target.IsPuppy or !target.SimDescription.IsPuppy

This is a signature.
Back to top