• Content Count

  • Joined

  • Last visited

 Content Type 




Klei Bug Tracker

Game Updates

Hot Lava Bug Reporter

Everything posted by reims9875

  1. When I play with friends on the same server, the modification is enabled, but when I play one , my item works. As if the subject does not work, it is as if there is no subject. Here is the item code. local assets= { Asset("ANIM", "anim/"), Asset("ANIM", "anim/"), Asset("ATLAS", "images/inventoryimages/wedge_breeze.xml"), Asset("IMAGE", "images/inventoryimages/wedge_breeze.tex"), } local prefabs = { } local function fn(colour) local function OnEquip(inst, owner) --owner.AnimState:OverrideSymbol("swap_object", "swap_wedge_breezes", "purplestaff") owner.AnimState:OverrideSymbol("swap_object", "swap_wedge_breeze", "wedge_breeze") owner.AnimState:Show("ARM_carry") owner.AnimState:Hide("ARM_normal") end local function OnUnequip(inst, owner) owner.AnimState:Hide("ARM_carry") owner.AnimState:Show("ARM_normal") end local inst = CreateEntity() local trans = inst.entity:AddTransform() local anim = inst.entity:AddAnimState() MakeInventoryPhysics(inst) anim:SetBank("wedge_breeze") anim:SetBuild("wedge_breeze") anim:PlayAnimation("idle") inst:AddTag("sharp") inst:AddTag("pointy") --weapon (from weapon component) added to pristine state for optimization inst:AddTag("weapon") MakeInventoryFloatable(inst, "med", 0.05, {1.1, 0.5, 1.1}, true, -9) inst.entity:SetPristine() if not TheWorld.ismastersim then return inst end inst:AddComponent("weapon") inst.components.weapon:SetDamage(TUNING.SPIKE_DAMAGE) ------- inst:AddComponent("finiteuses") inst.components.finiteuses:SetMaxUses(TUNING.GLASSCUTTER.USES) inst.components.finiteuses:SetUses(TUNING.GLASSCUTTER.USES) inst.components.finiteuses:SetOnFinished(inst.Remove) inst.components.finiteuses:SetOnFinished(inst.Remove) inst:AddComponent("inspectable") inst:AddComponent("inventoryitem") inst.components.inventoryitem.imagename = "wedge_breeze" inst.components.inventoryitem.atlasname = "images/inventoryimages/wedge_breeze.xml" inst:AddComponent("equippable") inst.components.equippable:SetOnEquip( OnEquip ) inst.components.equippable:SetOnUnequip( OnUnequip ) inst.components.equippable.dapperness = TUNING.CRAZINESS_MED inst.components.equippable.is_magic_dapperness = true return inst end return Prefab("common/inventory/wedge_breeze", fn, assets, prefabs)
  2. How to prevent my character from wearing some hats. My character has horns when he puts on his hat horns are cut off.
  3. I didn't understand anything about crafting. How to do them. Can you explain the details of C_Thun please
  4. Я хочу создать оружие, которое будет в моде с моим персонажем . Оружие будет ремонтировать от мяса. Помогите, пожалуйста, я просто полный ноль в lua коде. У вас больше опыта с этим прошу помощи.