Blueprinting: How do i spawn a BP by key Press?
Kind of a noob question, but i am setting up an Ai, i made a health system that allows a collision sphere (damage sphere) that is attached to the playable characters blade, and it decreases health/kills Ai player, but the problem is i have the collision sphere attached to the blade weapon on the playable character, and i just want it to be activated when you press a key (Left Mouse) and deactivated on key release. for some reason i cannot figure this one out. thanks in advance!
asked May 13 '19 at 03:11 PM in Using UE4
Well in that case might I simply suggest an alternate approach? You don't really need to turn collision on and off to have your blade deal damage to the enemy. All you need to do is create BP that has the blade with a collision sphere or box might be better, use an overlap event, cast to the AI and deal the damage. If you are truly new to all of this, a few basic tutorials on overlap events and casting may be of use before trying to implement this further so you have an idea of what I am talking about. You can check out this video I created on overlap events
and this series I made for those with little to no programming background who want to learn blueprints (I started without knowing anything myself so the pace and style is different than most tutorials. I think you will find it helpful)
answered May 13 '19 at 05:02 PM
Nebula Games Inc
Follow this question
Once you sign in you will be able to subscribe for any updates here