Search code examples
debuggingunreal-engine5unreal-blueprint

How to Disable an overlapping actor in ue5


My problem is that i have this overlapping actor when i overlap with it i take damage i want to disable it meaning i want the actor to stay in the scene and if i touch it i dont take damage and when the anger int goes over 6 it reenables making me take damage when i touch it a gain. why i need this is because i have a ghost i want the ghost to only attack when anger is over 6 the ghost uses the overlapping trigger box to damage the player currently i get damaged

I have tried using multiple methods of doing deactivate and activate, set active, everything, btw way i dont want to hide the actor the actor is already hidden


Solution

  • have you tried setting SetCollisionEnabled to NoCollision on the target actor's collision component?

    SetCollisionEnabled on the actors ShapeComponent (AKA Collision Component)

    OK, that didn't appear to work, this one seemed to work for me in an isolated example.

    SetActorEnableCollision