I am new to UE4 and I am following the first person shooter tutorial and it says to have this line of code CollisionComponent->OnComponentHit.AddDynamic(this, &AAmmo::OnHit);
However, I get a red line under the “.” before AddDynamic and in the error window in visual studio, I get this(See Picture) link text
I don’t know what to do and if there is another way to do this
The error seems to go away after i copied the text from the link(See pictures)
however I am now getting another error in which you can see in the picture.
I am an administrator so IDK why I am getting an error like that http://i.imgur.com/wqOQHGA.png