I am trying to make my AI Attack with sphere collider so that the attacks will sync with the animation.
the problem is when i try to set the sphere to a socket on the skeleton it wont go there and the radius keeps being realy small but is set it to 400.f.
The code does create a sphere colider but it is under the character, In addition There are no details in the character blueprint when i select the sphere.
If any one can help me understand why that would be grate.
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Attacking Collusion") class USphereComponent* AttackingCollusion;
AttackingCollusion = CreateDefaultSubobject<USphereComponent>(TEXT("Attacking Cullusion")); AttackingCollusion->InitSphereRadius(400.f); AttackingCollusion->AttachTo(GetMesh(),"AttackingCollision",EAttachLocation::SnapToTarget);