Projectiles colliding with static meshes etc.
In my game the player fires projectiles that should impact with walls and enemies etc. For now I have used the event ActorBeginOverlap to do this and it works fine, except for one detail, that I have to set Generate Overlap Events to true on all the walls and objects in all of my levels. Is there a smarter way to check for collision or a way to make all those meshes automatically generate overlap events or something where I don't have to check a bool on all objects in every level.
asked Mar 29 '16 at 02:39 PM in Blueprint Scripting
Are you sure you have to set the flag on both actors? I'm pretty new to UE4 myself, but I think it should be enough to set the flag on the actor you want to trigger the event, as long as the collision channel settings of both actors allow an overlap/collision to be created. Is it possible that you don't have the walls/enemies/... set to respond with overlap to whatever channel you are using for the projectile? You might want to use an extra channel for your projectile anyway and you can set the default response to overlap. Then you don't have to manually set any flags at all.
Follow this question
Once you sign in you will be able to subscribe for any updates here