Hello everyone, I made a custom broadsword, and the handle doesn't fit in the character hand. So i was playing with the "offset" and stuff but when i reload the game (new weapon each time) the weapon didn't move. How do you guys make those "relocation/repositioning" working ? Here the .activeitem { "itemName" : "scythe", "price" : 5, "level" : 1, "maxStack" : 1, "rarity" : "Rare", "description" : "idc", "shortdescription" : "scythe", "tooltipKind" : "sword", "category" : "broadsword","spear", "twoHanded" : true, "itemTags" : ["weapon","melee","broadsword","spear"], "inventoryIcon" : "scythe.png", "animation" : "/items/active/weapons/melee/broadsword/combobroadsword.animation", "animationParts" : { "handle" : "", "blade" : "scythe.png" }, "animationCustom" : { }, "scripts" : ["/items/active/weapons/melee/meleeweapon.lua"], "elementalType" : "physical", "primaryAbilityType" : "broadswordcombo", "primaryAbility" : { "fireTime" : 1.2, "baseDps" : 50 }, "altAbilityType" : "risingslash", "builder" : "/items/buildscripts/buildunrandweapon.lua" }[/CODE] And here the .animation { "globalTagDefaults" : { "paletteSwaps" : "" }, "animatedParts" : { "stateTypes" : { "swoosh" : { "default" : "idle", "states" : { "idle" : {}, "fire" : { "frames" : 3, "cycle" : 0.1, "mode" : "transition", "transition" : "idle" }, "fire2" : { "frames" : 3, "cycle" : 0.1, "mode" : "transition", "transition" : "idle" }, "fire3" : { "frames" : 3, "cycle" : 0.1, "mode" : "transition", "transition" : "idle" } } }, }, "parts" : { "blade" : { "properties" : { "zLevel" : 3, "centered" : true, "offset" : [0, 1.62], "transformationGroups" : ["weapon"], "rotationCenter" : [0, 0], "damageArea" : [[-0.7, -1.0], [-0.7, 2.5], [0.5, 2.5], [0.5, -1.0]] }, }, "handle" : { "properties" : { "zLevel" : 1, "centered" : true, "image" : "<partImage><paletteSwaps>?<directives>", "offset" : [0, 1.875], "transformationGroups" : ["weapon"], "rotationCenter" : [0, 0] } }, "swoosh" : { "properties" : { "zLevel" : -1, "centered" : true, "transformationGroups" : ["swoosh"], "rotationCenter" : [0, 0] }, "partStates" : { "swoosh" : { "idle" : { "properties" : { "image" : "" } }, "fire" : { "properties" : { "image" : "swoosh1/physicalswoosh.png:<frame>", "offset" : [0, 2.5], "damageArea" : [[-5, 2], [-2.5, 3], [1, 3], [4, 1.75], [5.25, -0.25], [5.25, -2.25], [3.75, -3.25], [0.25, -2.75]] } }, "fire2" : { "properties" : { "image" : "swoosh2/physicalswoosh.png:<frame>", "offset" : [5.0, 1.0], "damageArea" : [[-4, 1], [2.5, 1], [2.5, -2], [-4, -2]] } }, "fire3" : { "properties" : { "image" : "swoosh3/physicalswoosh.png:<frame>", "offset" : [3.5, 0], "damageArea" : [[-4.75, 1.5], [3, 1], [3, -1], [-4.75, -1.5]] } } } } } } }, "transformationGroups" : { "weapon" : {}, "swoosh" : {} }, "particleEmitters" : { "physicalswoosh" : { "active" : false, "transformationGroups" : ["swoosh"], "burstCount" : 4, "particles" : [ { "particle" : "soluskatana1"}, { "particle" : "soluskatana2"} ] }, "blade" : { "active" : false, "transformationGroups" : ["weapon"], "offsetRegion" : [-0.5, 1.5, 0.5, 4.0], "emissionRate" : 5, "particles" : [ { "particle" : "soluskatana1"}, { "particle" : "soluskatana2"} ] } }, "lights" : { "glow" : { "position" : [0, 2.0], "color" : [255, 255, 255], "transformationGroups" : ["weapon"] } }, "sounds" : { "fire" : [], "fire2" : [], "fire3" : [] } }[/CODE] Finally, a picture https://zupimages.net/up/20/08/526j.png[/IMG]
Spawn in a new weapon. Old ones you already have dont always update changes. And close out the game each time to be sure. Also note that 0.125 is 1 pixel, so you can use that to get a better idea of how much you need to adjust your offset.
Ok i did it. It's fine now. But, i used "weaponOffset" instead (in .activeitem) Note:Be aware to use the proper punctuation, i mean use a dot instead of comma for decimals. i did the mistake xd