Friday, 10 March 2017

Weapons and sockets

For the character to actually hold the weapons, there needs to be sockets on the skeleton for the weapons to be bound to.

The way we are implementing our weapons means there needs to be sockets for the weapons and shield being held as well as sheathed versions. If we were just implementing a single weapon that didn't need to be unequipped, then only the equip socket would be required.


When we set up the sockets, we then add the weapons to the character blueprint and assign them to a parent socket so that they align correctly. See the screenshot below where the sword is selected and the Parent Socket option is visible in the right hand window.


We have set up these weapon sockets to have the weapons in them permanently and the meshes will be shown and hidden as required in blueprints.

To have more flexibility e.g. to allow for weapon upgrades/inventory or cosmetic changes, we could simply leave the socket empty and equip the objects via Blueprints using the following nodes:



No comments:

Post a Comment