Jump to content

Recommended Posts

I have a mod character that can bring specific creatures to his side and make them his followers, though I've discovered that they stop being your followers when reloading the game. I was wondering if there is a simple way to fix this or not? Or if anyone has a good idea of how I could resolve this issue? 

Edited by codelyoko373
Link to comment
Share on other sites

Make them become your pets or have an extra components to save them but pets is easier
but they will despawn with you.
so if you join a friends lobby and you hop of they dissipear off your friends world and rejoin with you

        --adding the components to the character
        inst:AddComponent("petleash")
        inst.components.petleash:SetMaxPets(Total_Max_Pets)


       --spawning in the pet through component
       --Spawning from character
       inst.components.petleash:SpawnPetAt(x,y,z,prefab_name)

 

    
  • Like 1
Link to comment
Share on other sites

59 minutes ago, Thomas Die said:

Make them become your pets or have an extra components to save them but pets is easier
but they will despawn with you.
so if you join a friends lobby and you hop of they dissipear off your friends world and rejoin with you


        --adding the components to the character
        inst:AddComponent("petleash")
        inst.components.petleash:SetMaxPets(Total_Max_Pets)


       --spawning in the pet through component
       --Spawning from character
       inst.components.petleash:SpawnPetAt(x,y,z,prefab_name)

 

    

That worked prefectly! Thank you

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...