blueprint
Weapon Pickup Functionality (Interactive)
- Exposure: public
- UE Version: 4.26
ctrl + v
1 comment
-
-
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.
-
Create two variables of type boolean and name them HasWeaponBeenPickedUp? and CanWePickUpWeapon?.
-
And write this code.
-
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.
-
Tvashtr
May 12, 2022, 4:21 pm