Hello everyone, I was following the Weapon essentials tutorial, and at one point it does a similar function with this …
void AWeapon::SetOwningPawn(AWeaponEssentialsCharacter * NewOwner)
{
if (MyPawn != NewOwner)
{
Instigator = NewOwner;
MyPawn = NewOwner;
}
}
and as I was following the tutorial I tried to do the same but in my case it returns error, the image I’m going to leave is in Portuguese(sorry for that)
,
but it says: a value of type “AFSCharacter* *” (my base character) can not be attributed to a “APawn *” type of entity, I did not know what it was and I checked on some of the codes that exist in the community (Shootergame and Survival Game) and both make that mention (by the way I understand it’s a conversion) , but in my compilation conversion does not happen.
Could someone help me with this? And in another doubt I’m a beginner in C ++ in the unreal engine, and I wanted to know a lot how I could expose my booleans to Anim BP;