Spawn an Actor without collision
I read much posts about removing collision from Actors, but none of them worked for me. I'm trying to have a Box, where you can walk through, but I'm stucking at removing the collision. My current constructor code is:
From your one comment it sounds like you are trying to make a trigger but not a hard collision correct? This is how I have been making trigger effects (my example will use a sphere component because I can pull it from code that I know works)
ANpcFish is the class. This makes it so that characters can walk through the sphere (which is invisible) and trigger it if they also allow overlap events (which is just a check box in a collision component). Then you define the functionality you want in the OnOverlapBegin(...)
The definition looks like this :
This also needs to be in your header file like this
The UFUNCTIION() above both of these is an important macro. It has to be there. This is a link to a really quick tutorial in the documentation using c++ only: https://docs.unrealengine.com/latest/INT/Gameplay/ClassCreation/CodeOnly/
Hopefully this helps! Remember that this sets the component to generate overlap events but those will only trigger with other actors/objects that also generate overlap events! Hopefully the wall o' text isn't so bad!
answered Aug 29 '16 at 07:45 PM
Could you try
and see if it changes anything?
answered Aug 29 '16 at 11:21 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here