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"

AActor incompatible with UPrimitiveComponent

An error keeps popping up stating AActor is incompatible with UPrimitiveComponent, which is happening at the Generated_Body line. It must have something to do with my TriggerEnter function Please explain. alt text

alt text alt text

Product Version: UE 4.13
picture1.png (25.1 kB)
picture2.png (31.8 kB)
picture3.png (4.5 kB)
more ▼

asked Jun 09 '17 at 11:11 PM in C++ Programming

avatar image

1 1 3 5

avatar image RotemS Jun 10 '17 at 07:16 AM

This is an intellisense error. What is the actual error when you try to compile?

avatar image k8eee Jun 10 '17 at 05:35 PM

The program can compile, but it is definitely not doing as I desire. It is supposed to send the player back to the starting position when the player lands on the box, but the program does nothing.

avatar image RotemS Jun 11 '17 at 11:30 AM

There could be a lot of different reasons. Does the other actor component have collision query and generate overlap events enabled? Does it have a proper overlap response with this actor?

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

1 answer: sort voted first

This could be a lot of things, but the most obvious is, did you remember to #include "Boundary.generated.h" in Boundary.h?

Also, the name of the third argument of TriggerEnter changes between your declaration and definition. (OtherBodyIndex vs OtherBodyIndx). I wouldn't expect this to cause trouble in normal C++, but you never know once UE4's reflection and intellisense get involved, it may be confusing them.

more ▼

answered Jun 12 '17 at 10:15 PM

avatar image

639 26 29 57

avatar image RotemS Jun 13 '17 at 06:54 AM

If any of these were the issue the program would not compile.

(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