Bug? Get surface type not working in construction script

Hey all! Been having a strange issue trying to use the “get surface type” node. I have it set up so that when a player runs across a landscape, it generates different footsteps based on what has been painted on the landscape. That works fine.

HOWEVER: When I try to do a line trace in a different blueprint’s construction script to detect the physics material to place a static mesh on a landscape, it doesn’t detect the physics material at all. I tried to use a print string to output when it hits the material to debug and it comes back empty.

The code I to detect this is identical to the code used to determine what footsteps sounds play.

Is this a bug???

Run it off Begin Play

Traces require GetWorld() which is not available until Begin Play is initialized. Construction Script is used for PRE-GameTime logic execution.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.