CompilerResultsLog: f:\MyGame(shoot em up )\MyGame(shoot em up ) 4.19\ShootEmUp\Source\ShootEmUp\DamageSystem.cpp(24): error C2039: 'OnDeath': is not a member of 'AActor'
the interesting thing is the exact same thing in other project work perfectly!
plz HELP.
GetOwner() return AActor pointer which does not have your delegate declered, i gonna call your class where you declered it ASomething. You need to cast it to your type:
You need to remeber that Cast will return null pointer if owner is not compatible with ASomething, or else you 100% sure that GetOwner is always gonna retunr ASomething object in AActor pointer, you need to do null check. If you would got null pointer then you would have a crash.