How can I check what a projectile hit?
How can I check what my projectile hit in my scene?
I basically want this, I know it is incorrect, but it shows basically what I want:
I just can't figure out how to do this.
asked Sep 02 '15 at 10:41 AM in Blueprint Scripting
This is basic setup. For example I used First Person Projectail from FP template.
For collision component I added OnComponentHit event and use Hit output to get the name of object which was hitted.
Add boolean variable Fire! for registered only first hit. Default Fire! is False.
Add Actor variable Name type and set the object with needed name.
In FirstPersonCharacter blueprint in Spawn projectile section, set the variable Fire! in True.
You will get a message on screen, when your projectile hit object with name FirstPersonCube_Rounded2. All other objects in scene will be ignored
answered Sep 02 '15 at 12:35 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here