Home | Help | Download | Community | Site Map | New Posts | Sign in
Replies: 29 (Who?), Viewed: 11586 times.
Page 2 of 2
1978 gallons of pancake batter
staff: retired moderator
Original Poster
#26 Old 8th Sep 2011 at 4:39 PM
smochina4000, that is way off topic in this thread. Please read the pure scripting tutorial to get going and then refer to the modding discussion forum to get direction.

Robot Armed With Down Comforter Levels Apartment Building, Holds Mayor Hostage.
Test Subject
#27 Old 8th Sep 2011 at 7:56 PM
Thank you! OK, I will search more.
Lab Assistant
#28 Old 17th Sep 2011 at 2:43 AM
Quote:
Originally Posted by Buzzler
I just looked at your code in Reflector. You only have the interaction, but it just sits there and doesn't get used. The point of the localized coding tutorial is not to get you started in script modding, but to get you started in writing localized code *after* you started script modding. Please refer to Tutorial:Sims_3_Object_Moddingwiki to see how an interaction gets added to an object.


He is doing a sim to sim interaction, not sim to object. How do you add an interaction in that case?
1978 gallons of pancake batter
staff: retired moderator
Original Poster
#29 Old 17th Sep 2011 at 8:51 AM
Quote:
Originally Posted by jtravers88
He is doing a sim to sim interaction, not sim to object. How do you add an interaction in that case?
Read the pure scripting tutorial to make the basic frame for a object-less mod.

Then, in the OnWorldFinished method, you can find all objects you want to add the interaction to by calling
Code:
Sims3.Gameplay.Queries.GetObjects<T>();
where T is any class that is a GameObject, e.g. Fridge. It returns an array of T.

To add your interaction to it, you call every object's AddInteraction method. Don't forget to check whether the object already has the interaction or you'll end up with your interaction being present multiple times.


Again, this is completely off-topic in this thread, so if you have further questions, please use Modding Discussion.

Robot Armed With Down Comforter Levels Apartment Building, Holds Mayor Hostage.
Test Subject
#30 Old 6th May 2012 at 3:06 PM
Default Is there any way for making an animation without using "smooth jazz" as intermediate?
I would like more advanced codding tutorials, learning things about sims 3 Class Libreries, have access to the function description and code my own packages as I want. I have so many ideas and don't know how to start.....
Page 2 of 2
Back to top

Section jump