x

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"

?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:

https://www.dropbox.com/s/neecmfx3xjfebq1/Captura%20de%20tela%202016-06-12%2019.00.59.png?dl=0 https://www.dropbox.com/s/morff7b9mkde2af/Captura%20de%20tela%202016-06-14%2012.34.59.png?dl=0 https://www.dropbox.com/s/l61oo9mhbatw65s/Captura%20de%20tela%202016-06-14%2012.35.50.png?dl=0 https://www.dropbox.com/s/c07wrfx7vyaieac/Captura%20de%20tela%202016-06-14%2012.36.28.png?dl=0

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.

Product Version: UE 4.11
Tags:
more ▼

asked Jun 12 '16 at 10:04 PM in Blueprint Scripting

avatar image

Tulk
88 1 11 14

avatar image saeedc Jun 12 '16 at 10:24 PM

I could not download that file.

avatar image Tulk Jun 12 '16 at 10:33 PM

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

avatar image SparkyMcSparks Jun 13 '16 at 11:50 PM

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: alt text

valid_feet.png (111.0 kB)
avatar image rampagekraze Jun 14 '16 at 01:19 AM

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.

avatar image Tulk Jun 14 '16 at 03:30 PM

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

avatar image Tulk Jun 14 '16 at 11:10 PM

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

Here the SS's:

Blueprint:

https://www.dropbox.com/s/1bk0kmaoko2l2wb/Captura%20de%20tela%202016-06-14%2020.05.03.png?dl=0

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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!

more ▼

answered Jun 12 '16 at 10:28 PM

avatar image

rampagekraze
55 3 5 9

avatar image Tulk Jun 12 '16 at 10:35 PM

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 =)

(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