Cannot change weapon position

Started by Lumind, September 06, 2026, 12:29:04 PM

Previous topic - Next topic
In Blender, no matter how I modify the unit model or hp_weapons, it is always in the same position in game. My problem is that in my custom unit model any weapon appears above the hand, not inside the hand but i cannot move the spawn point

You have to watch where the origin point of the main object is. Whatever the main object (that everything else is attached to) must be centered in the XYZ grid (basically should say 0.0 in all Location fields).

What you can do, and what I often do, is create a single "root" object with no vertices and have that grounded at the center, then attach the main weapon model to that, then you can move it around and make placement adjustments. Pull up any animated model (like a soldier) and it will have a "dummyroot" as the base "root" of all the attached objects.

The other option, is once you've moved your main weapon object, go to Object -> Apply -> Location and it should ground the origin point of your object to the 0 0 0 point on the grid.

hp_weapons does not do anything and was probably a leftover hardpoint from an earlier state of the game's development.

I have the blank root object (I first imported the ep3 clone trooper and then replaced the mesh). The unit object model does not contain any weapon - it is spawned in game. However, I do not understand how the game decides where to spawn the active weapon

Sorry, my mistake. I thought you were talking about a weapon model.

For a soldier model, I still don't think the hp_weapon hardpoint does anything, I think it's the hp_weapon bone that is part of the skeleton that matters, but I just tried moving that around and it also doesn't do anything. I'm not very knowledgeable about modifying skeletons, so maybe some else knows how to do that.

Your other alternative is to adjust the position of the hand of your model so it aligns closer to that bone.

Quote from: Ty294 on September 08, 2026, 11:23:46 AMYour other alternative is to adjust the position of the hand of your model so it aligns closer to that bone.

I am thinking of doing it but as a last resort because otherwise I'll have a tiny-hands Trandoshan  :D

I also looked at the ewok's model - the distance from the center is about the same but lower to consider its height. So, somehow some adjustments are possible.

I was able to move the weapon hard point in the past. However, I don't recall the exact steps anymore.
In your case I would try to reparent the hardpoint to the hand/weapon bone and keep the offset (origin to the hard point geometry).
I will try to reproduce when I am home.