I have some problems with setting the weapon-output in front of the weapon. First i try to do it with reparent the weapon-output to the weapon (and after that i want to set an offset to the front of the weapon). But if i use this.weaponOutput.reparent(this.weapon) the weapon-output disappears.
Can someone tell me why this happens? I create a sample project so you can see the problem.
I indeed forget the this in the sample project. Sorry for that.
How i can set the scale the same as the orginal, i think if i use a wrong scale i also get a wrong ofsett?
I have update the sample project with the offset code and in the sample project it works fine, but if i use the same in my game, i get for every enemy a diffrent wrong offset. I dont understand why because i clone the same entity so i expect the same result on every cloned enemy…