Spawning Actor on Key Press doesn't work, but Is Input Key Down Does?
Hey guys! So, I am working on a little project that'll require a shield to spawn at the location of the player. I first checked to make sure that "Block Input" was Not Enabled in my Default Settings, and then tossed in this Blueprint. I checked out a lot of videos, and these Blue Prints always seemed to work, but it isn't working for me. Whenever I click "F", nothing Spawns even though I have the Shield Selected for the Class on Spawn Actor.
If I drag the "Pressed" for "F" to the Print String, that doesn't work either. However if I drag "True" on the "Branch" to the Spawn Actor and click on "F", that works, but it spawns too many Shields.
I saw in some videos that people used "Get Player Character" Node, but whenever I try using that, I get "Accessed None", but I don't think I need it because "GetActorLocation" with it Targeting Self does return the correct Location.
I just don't know if I am missing something or if I did something wrong somehow?
asked May 16 '18 at 07:22 PM in Blueprint Scripting
I guess I'd go through a checklist:
Enable input may not be needed, but it is impossible to tell the context in which you are working.
Another issue might be that spawning a box at actor's location may not work if it ends up colliding with something.
answered May 16 '18 at 09:42 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here