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"

How do you compare actors?

Is there a way to check if an actor is a specific actor?

Scenario : I wish to check to see if my target is myself, if it isn't then do something, if it is, then do nothing.

Product Version: Not Selected
Tags:
more ▼

asked May 15 '14 at 06:18 PM in Blueprint Scripting

avatar image

ItzFriday
108 7 10 11

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

3 answers: sort voted first

Hey ItzFriday,

You can do this by creating Equal Object or Not Equal Object nodes. In your case, I would suggest using Not Equal Object, this way if it is not the same Actor. It returns true.

I hope this helps.

alt text

Peace

compareactors.png (44.7 kB)
more ▼

answered May 15 '14 at 06:38 PM

avatar image

PeterLNewton
2.1k 75 37 111

avatar image ItzFriday May 15 '14 at 06:39 PM

Thank you for the speedy answer!

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

@DatnessX: You're comparing the instance of the class in the game which won't be equal. You can try getting the class from the object and comparing that instead.

alt text

more ▼

answered May 18 '16 at 07:35 PM

avatar image

sw_hornet
96 3 5 19

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

This isn't working, how it is possible?

alt text

thrthrt.png (50.2 kB)
more ▼

answered Apr 02 '16 at 04:31 PM

avatar image

DatnessX
24 3 6 12

avatar image Dieinthedark93 Oct 26 '17 at 01:40 AM

Without more context, I'll say they're different instances of the same mesh almost certainly

(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