I am looking for the counterpart to the blueprint function Set Collision Object Type that takes a Primitive Component as a target.
Here’s why it would be super to have this. I have a game with a grappling hook.
Under Edit - Project Settings - Collision - Object Channels - I have created a New Object Channel named grapplePoint.
In my levels, I have marked many different components as grapple sites by going into the selected components Details - Collision - Collision Presets - and set the Object Type to grapplePoint
When aiming the grappling hook I do a LineTraceForObject and pass in an Object Types array with grapplePoint as the object type I am interested in.
This all works great. Another feature of the grappling hook is it can bounce off of other components in the world. The projectile movement component handles this, but if the hook bounces into a grapplePoint I would like the hook to stick to it instead of bouncing off.
On EventHi it would be nice to get the Collision Object Type from the hit component and to see if we have bounced into a grapplePoint.
So, is there any way to get a component’s Collision Object Type from a blueprint?