?Is Valid - Help!

Hello again. I want to know how can I put ?isValid node when I use Debug draw line on blueprint? I’m using blueprint image below:




PS: I’m using mesh component 'start from draw debug line and 'end for +vector from the direction of AI character.

If someone can help with this!

PS: I want to use isValid because have an error like "Accessed None trying to read property CallFunc…from node Debug Draw Line…
I’ve already have it → the branch with 2 output (true and false) after isValid. What I want to make is that the when AI character to approach the player draw a line on the ground (own foot) to show it is working - this is why i’m using draw debug line.

I could not download that file.

So you say you want to use isvalod when drawing a line. I am not sure why, as isvalid simply means is there a value in that variable. I am guessing you mean that you are line tracing, and you only want to run code if the trace hit something. If that is true, than you will want to drag out from the red Boolean output of the line trace and type Branch. The branch has 2 outputs. One is if the line hit something, one is if it didn’t.

I am sorry if this seems as though I assume you are stupid, I do not.

Hope this helped!

You don’t need that. Just follow the SS. \o

I want to use isValid because have an error like "Accessed None trying to read property CallFunc…from node Debug Draw Line…
I’ve already have it, the branch with 2 output (true and false) after isvalid.
What I want to make is that the when AI character to approach the player draw a line on the ground (own foot) to show it is working - this is why i’m using draw debug line =)

The Dropbox screenshot you shared is private, you need to make it shareable.

Here is a shot in the dark though at what it sounds like you’re trying to achieve until we can see your screenshot:

Use get player character instead of get player pawn. Getting the pawn will get the default game mode pawn and could cause issues down the road. Also, it’s always better to link actor to actor and pawn to pawn.

Now its shareable. I’ll add the rest. And how do you use get actor location with self? I try this but doesn’t work. >3

Now the debug line is working like shown below on image!

Here the SS’s:

Blueprint: