Quick Reply
Search this Thread
Test Subject
Original Poster
#1 Old 28th May 2024 at 2:53 AM
Default New to modding- What's wrong with my script?
Code:
using Sims3.Gameplay.Actors;
using Sims3.Gameplay.Autonomy;
using Sims3.Gameplay.Interactions;
using Sims3.SimIFace;
using System;
using System.Collections.Generic;
using System.Security.Cryptography.X509Certificates;
using System.Text; 

namespace myfirstmod
{
    public class Class1
    {
        [Tunable]
        protected static bool kinstantlator = false;

        static Class1()
        {
            World.OnWorldLoadFinishedEventHandler + -new EventHandler(OnWorldloadFinishedHandler);
        } 

        private static void OnWorldloadFinishedHandler(object sender, EventArgs e) 
        {
            foreach (Sim sim in Sims3.Gameplay.Queries.GetObjects<Sim>())
            {
                if (sim!=null)
                {
                    Addinteractions(sim);
                }
        }
private static void Addinteractions(Sim sim)
        {
            
        }

        public class Tutorialtestinteraction : ImmediateInteraction<Sim,Sim>
        {
            public static readonly InteractionDefinition singleton = new Definition();

            public class Definition: ImmediateInteractionDefinition<Sim,Sim,Tutorialtestinteraction>
            {
                public override bool Test(Sim actor, Sim target, bool )
            }
        }
Screenshots
Advertisement
Test Subject
Original Poster
#2 Old 28th May 2024 at 2:54 AM
Oh also here's the video I'm following:
https://www.youtube.com/watch?v=nUy...9uAPjs_&index=2

At the 24:22 for context!!
Back to top