Hello All,
When I was going through this lecture I thought to myself why are we casting that way to the Tower, when the way were casting to the Tank made so much more sense - that and I couldn’t really follow the code. So after playtesting and NOT having the tower destroyed, I decided to do just that and changed the code, and I found out that we can’t do it that way because the final parameter in the GetPlayerPawn() requires us to put in a value for PlayerIndex - and we don’t have one as it us never set as it isn’t a possessed character - damn. Question: Is there a a better way of doing this or is this really the only way?
As for my problem, I had the if braces mixed up, no wonder the HandleDestruction function wasn’t being called.