Weapon swap between several weapons

Datahunter
Tue, 26 May 2020 17:36:16 +0000
Community & Industry Discussion

Hi all

I want to swap between 10 weapons and a grenade, each weapon is bound to a key and in a enum.
1-0 weapons and G for grenade.
I check to see if the weapon is picked up and this works, if it is not pickup up then the weapon does not spawn.

but when I use switch on enum via1-0 and G, then only weapon 1 and 2 works.
all the other keys chooses weapon 2, even if it is not picked up and when I press G for the grenade which is enum0.
I swap the weapon child actor with the weapon blueprint.
Weapon1 is the masterBP and all the others are childBP with different skeletal meshes.

Am I doing it wrong or am I missing something?
My thinking tells me this should work to swap the child actor through the different blueprints.

3 posts - 1 participant