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"

Weapon object reference is not compatible with self object reference

"Weapon object reference is not compatible with self object reference"

Im following a tutorial: https://www.youtube.com/watch?v=weQ527F_b44

The problem occurs at 17:41 when linking "as weapon" to "target"

Product Version: UE 4.19
Tags:
more ▼

asked Jul 09 '18 at 04:15 PM in Blueprint Scripting

avatar image

retabDEV
3 2 2

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Open the Give to Player function and ensure that the Target pin has the correct type, presumably the parent class of weapon.

more ▼

answered Jul 09 '18 at 06:39 PM

avatar image

Everynone
12.6k 72 24 53

avatar image retabDEV Jul 09 '18 at 07:06 PM

@Everynone I'm not sure what that means, im very new sorry. Also what about this "Gun Mesh" says error, i cant seem to sort it out when i look at the compiler results

alt text

avatar image Everynone Jul 09 '18 at 08:27 PM

That was a bad advice on my part, actually. I should have looked closer.

Give to Player event seems to belong to the weapon blueprint in the tutorial. You have put it in the character.

Gun Mesh - your character does not have one, it's greyed out - where did you even take it from?

avatar image retabDEV Jul 09 '18 at 08:42 PM

Managed to put the give to player bp into the weapon bp, the Gun Mesh is no longer greyed out, however now the lower bp in the picture has an error with "Give to player" on the right. Also the "cast to weapon" still wont connect to "give to player", as weapon to target self

avatar image retabDEV Jul 09 '18 at 08:57 PM

HOLY MOLY, MOTHER OF GOD!

im an idiot, i put the bp in the child bp!

its all connected now!

THANK YOU!

(comments are locked)
10|2000 characters needed characters left
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