Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Detect Physical Material + Error in viewport | Footstep sounds

Hi guys, today I want to implement a more advanced First Person Character and added head bobbing. Now I wanted to add some sound to my character with sound variation. I've found a good video tutorial and everything worked out, but now I have problems with detecting the Phys Materials and some errors, when I end the viewport playback.

First of all I want to show you my blueprint: https://blueprintue.com/blueprint/i7cjl-gx/

The default sound works, but the others won't ... and I dont get a printed string. My thought was, something is missing to detect the Physical Material. In the Project Settings I set my Physical Surface, I created new Physical Materials and assigned them to the Standart Materials. I also assigned the Surface Type to the Phyiscal Material. This is the setup I need, right?

And this isn't my only problem. After end the Play mode, I get the following Error Message:

Blueprint Runtime Error: Accessed None trying to read property CallFunc_BreakHitResult_PhysMat from function: 'ExecuteUbergraph_FPS_Controller' from node: Switch on EPhysicalSurface in graph: EventGraph in object: FPS_Controller with description: Accessed None trying to read property CallFunc_BreakHitResult_PhysMat

In case the full blueprint is necessary: https://blueprintue.com/blueprint/xeublpt3/

To be honest - I understand there is a connection missing, but I dont know how to fix it.

Thanks for your help :)

Product Version: UE 4.18
more ▼

asked Mar 04 '18 at 02:00 PM in Blueprint Scripting

avatar image

32 4 14 17

avatar image ExtraTorpedo May 08 '18 at 11:08 AM

Your trace length seems very short, but I don't know what your player is. Also, double-check the material you are using on your mesh or landscape is correct. Since you are using Character Movement, I might suggest a different solution (remember to click the "return material on move" in the capsule section).

alt text

1.png (161.8 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

It seems to me like your line trace goes 20 units up, not down. If so, you're not getting a hit at all.

Also, 20 units might be too short anyway.

I'm also curious which trace channel you're using, but again I'm pretty sure that in one way or another, your trace isn't even hit anything.

I think that might explain your error message too (invalid phys mat in hit result).

Have your blueprint report the hit boolean to you and see what it's saying.

Did you remember to apply your physical materials to the landscape layer files generated in the Landscape Paint tab?

more ▼

answered Jul 27 '18 at 11:56 PM

avatar image

6 1 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question