So I’ve recently been trying to make a portal gun in UE4. Nothing crazy. My problem is that when my projectiles hit an object, they destroy themselves, but don’t spawn the portal. Here are my blueprints for the projectile and portal. Help?
http://imgur.com/hATpi0v <----------Projectile
http://imgur.com/mATmRv1 <----------Portal
(I’m sure you know, but just copy and paste the link into your browser for the images)
Thanks in advance for any advice!
you answered your own question, follow the logic of this statement. your projectile BP’s first node is to destroy it’s self, it therefore never executes the rest of the code.
also, as you get all actors of class, you don’t need to cast, as you already have access to it, the blue note on the cast node will tell you this.
Thanks for the help. I actually have tried rearranging the destroy node, but I’ll try again and see if it works.
Hey franktech, thanks for the response. To be honest, I’m really new to Unreal, and haven’t dabbled into game development much yet. I’m still quite young, so I have much to learn. If you could help me out on this project, or just dumb down what you said, that’d be great. Thanks!
Again, I’m still learning, but how can I put a script (or blueprint) in the character that controls what happens when the projectiles collide and make them spawn portals?
Thank you so much for your help!