blueprint

Weapon Pickup Functionality (Interactive)

  • Exposure: public
  • UE Version: 4.26

avatar author

Tvashtr

May 12, 2022, 4:03 pm

Click the button above, it will automatically copy blueprint in your clipboard. Then in Unreal Engine blueprint editor, paste it with ctrl + v

1 comment

  • avatar author

    Tvashtr

    May 12, 2022, 4:21 pm

    1. Go to Blueprints and create an actor class; go to add components section and add skeletal mesh(for weapon), a box collision, and a text render(name of weapon); turn the visibility off and set hidden in game to be false of the text render.

    2. Create two variables of type boolean and name them HasWeaponBeenPickedUp? and CanWePickUpWeapon?.

    3. And write this code.

    4. P.S - Do not forget to go to Blueprint base weapon (self) which is under component section, click it and in the details section go to input and set auto receive input to Player 0.