UE4 (4.23); VS2017 PRO
This Code compiles w/o any errors, but in game it does not change anything.
// ** CoopGame.h
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#define COLLISION_WEAPON ECC_GameTraceChannel1
// *** end of CoopGame.h
#include "SCharacter.h"
#include "Camera/CameraComponent.h"
#include "Components/InputComponent.h"
#include "GameFramework/SpringArmComponent.h"
#include "GameFramework/CharacterMovementComponent.h"
#include "Engine/World.h"
#include "Components/CapsuleComponent.h"
#include "Public/CustomProjectile.h"
#include "Components/CapsuleComponent.h"
#include "CoopGame.h"
#include "Public/SWeapon.h"
ASCharacter::ASCharacter()
{
// make capsule to ignore Weapon`s damage (projectiles)
GetCapsuleComponent()->SetCollisionResponseToChannel(COLLISION_WEAPON, ECR_Ignore);
GetCapsuleComponent()->SetCollisionResponseToChannel(ECC_PhysicsBody, ECR_Ignore);
}
[/SPOILER]
I will appreciate any help, Thank you!