-
Content Count
774 -
Joined
-
Last visited
Community Reputation
855 ExcellentAbout thomas4846
-
Rank
Senior Member
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Enable-
Duplicating a Prefab
thomas4846 replied to Sally Cinnamon's topic in [Don't Starve Together] Mods and Tools
local function ondeploy(inst, pt, deployer) local turret = SpawnPrefab("eyeturret") --> change this one to your item prefab name if turret ~= nil then turret.Physics:SetCollides(false) turret.Physics:Teleport(pt.x, 0, pt.z) turret.Physics:SetCollides(true) turret:syncanim("place") turret:syncanimpush("idle_loop", true) turret.SoundEmitter:PlaySound("dontstarve/common/place_structure_stone") inst:Remove() end end Kinda guessing that you just cntrl c and v'd the code so i'd say change this. Do you want to alter the original code or make a new one altogether btw? -
inst:ListenForEvent("equip", function(inst, data) if data.item.prefab == "tigerpan" then inst.AnimState:SetBuild("thejanitiger") end end) inst:ListenForEvent("unequip", function(inst, data) if data.item.prefab == "tigerpan" then inst.AnimState:SetBuild("thejani") end end) you forgot to call the functions
-
[Documentation] List of All Engine functions
thomas4846 replied to Hornete's topic in Tutorials and Guides
=) -
AddClassPostConstruct("widgets/redux/loadoutselect", function(self) if self.puppet == nil or self.currentcharacter ~= "yourcharacter" then return end local puppet = self.puppet --don't mind me puppet.animstate:OverrideSymbol("swap_hat", "your_hat_stuff", "swap_hat") puppet.animstate:Show("HAT") puppet.animstate:Show("HAIR_HAT") puppet.animstate:Hide("HAIR_NOHAT") puppet.animstate:Hide("HAIR") end) This should be everything, maybe you might need to include your anim assets for the hat but ya.
-
What is your opinion on Tencent's ownership of Klei?
thomas4846 replied to Charlie Dark's topic in The Off-Topic Area
If they remove spools or censor anything than at least to me it's gonna go down hill. But we got meme material now. -
please help me out
thomas4846 replied to tinytheshadowmonster's topic in [Don't Starve Together] Mods and Tools
also from the king himself can't forget this guy