How to get the Item Index for ApplyExternalStrain?

I want to obtain the ItemIndex for use with ApplyExternalStrain from a line trace, but neither Hit Item, Element Index, nor Face Index return the correct value. They all return strange values, such as 0, -1, or -2147…

Where do I get this value from? Surely there must be a way to retrieve the value that needs to be used. Furthermore, It is inherently nonsensical to require an “Item Index” when the position and range have already been specified.

Hi @AgentMic0604

Before jumping into specific setups, Could you share a couple of quick details so I make sure I’m pointing you in the right direction?

  • Which Unreal Engine version are you working in?

  • Are you running a Line Trace By Channel against a Geometry Collection Component directly or is it hitting a custom collision/parent Actor first?

Chaos Destruction in UE5, “ApplyExternalStrain” actually takes the Hit Item directly from the Break Hit Result node, as long as the trace actually hits the Geometry Collection Component itself and Trace Complex is checked on your trace node.
When “Hit Item” returns “-1 or -2147…” it usually means one of two things:

  1. Simple vs. Complex Collision
    If Trace Complex is unchecked, the trace might be colliding with the outer bounding volume or a simplified hull rather than resolving the individual fractured cluster/bone index.

  2. Hitting the Wrong Component
    If your Geometry Collection is nested inside a Blueprint with a capsule or box collider, “Hit Component” might be grabbing that wrapper instead of the Geometry Collection Component which will always give you “-1” for Hit Item.

Here is how you could wire it up to test and verify what’s going on:

  1. From your Line Trace By Channel (or Sphere Trace) enable Trace Complex on the node

  2. Drag off Out Hit and add a Break Hit Result node.

  3. Cast or check Hit Component to make sure it’s actually the Geometry Collection Component (printing Hit Component → Get Display Name is a great quick sanity check)

  4. Plug Hit Item straight into the Item Index pin on Apply External Strain (called on that Geometry Collection Component) and Location into Position.

Note: If you don’t need to target a specific broken part but just to cause radial damage then many times you would skip using ApplyExternalStrain and use a Master Field (FS_MasterField) instead.
This causes radial damage and allows linear velocity to be applied much cleaner. You don’t have to worry about the bone/item index when using this.

Epic Documentation: Chaos Destruction · Apply External Strain

Let me know what Hit Component prints out for you and which engine version you’re on and we can narrow it down from there!