identifier is undefined
i'm trying to cast my aicharacter to hit.getactor but i keep getting this error identifier "Hit" is undefined and for my if statment if my hit.getactor is true then i can apply damage (damageamount) and i get the same error and i'm apply damage to my linetrace
AI character.h health = 5.f; damageamount = 2.f;
Hit is indeed undefined at line 6. You need to prepare the Hit struct before you use it like with the Line Trace.
answered Apr 21 '19 at 08:13 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here