miunyan Posted October 26, 2015 Share Posted October 26, 2015 Hi! Nice to meet you ^///^I'm working on a Don't Starve Together character for the first time and I want to make a pet (cat) follow her. Is it possible? Thanks for passing by. Link to comment https://forums.kleientertainment.com/forums/topic/58692-help-character-with-pet/ Share on other sites More sharing options...
pickleplayer Posted October 26, 2015 Share Posted October 26, 2015 Hi! Nice to meet you ^///^I'm working on a Don't Starve Together character for the first time and I want to make a pet (cat) follow her. Is it possible? Thanks for passing by. It'd probably be pretty easy to just re-skin chester and copy all of his code and just remove the bits of code that allow him to be a container to store stuff in Link to comment https://forums.kleientertainment.com/forums/topic/58692-help-character-with-pet/#findComment-682764 Share on other sites More sharing options...
The Noon Fish Posted November 1, 2015 Share Posted November 1, 2015 Hi! Nice to meet you ^///^I'm working on a Don't Starve Together character for the first time and I want to make a pet (cat) follow her. Is it possible? Thanks for passing by. inst:AddComponent("childspawner") inst.components.childspawner.childname = "catcoon" inst.components.childspawner:StartSpawning() -- spawns catcoon on join inst.components.childspawner.maxchildren = 1 --dont want to spam the screen with cats if inst.components.leader then local x,y,z = inst.Transform:GetWorldPosition() local ents = TheSim:FindEntities(x,y,z, 100, {"catcoon"}) for k,v in pairs(ents) do if v.components.follower then inst.components.leader:AddFollower(v) end end for k,v in pairs(inst.components.leader.followers) do if k:HasTag("soul") and k.components.follower then k.components.follower:AddLoyaltyTime(3) end end endnot exactly sure if it works in DST, but it works in DS, so maybe :v Link to comment https://forums.kleientertainment.com/forums/topic/58692-help-character-with-pet/#findComment-683678 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now