| Search this Thread |
|
|
#26 |
|
Buzzler
Original Poster
1978 gallons of pancake batter
|
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. |
|
|
|
|
|
|
#27 |
|
smochina4000
Test Subject
Join Date: Jan 2006 |
Thank you! OK, I will search more. |
|
|
|
|
|
#28 | |
|
jtravers88
|
Quote:
He is doing a sim to sim interaction, not sim to object. How do you add an interaction in that case? |
|
|
|
|
|
|
#29 | ||
|
Buzzler
Original Poster
1978 gallons of pancake batter
|
Quote:
Then, in the OnWorldFinished method, you can find all objects you want to add the interaction to by calling
Code:
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. |
|||
|
|
|
|
|
|
|
sarita_22_35
Test Subject
Join Date: Apr 2012 |
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..... |
|
|
|
![]() |

Have an opinion? Of course you do!


Twitter
del.icio.us
StumbleUpon
Google