Announcement

Collapse
No announcement yet.

Learning c++ ...I've got an error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Learning c++ ...I've got an error

    Hi...

    I'm programming the MeleeWeapon class...

    Click image for larger version

Name:	Cattura.PNG
Views:	1
Size:	28.4 KB
ID:	1182311

    It says that I can't convert from "AWardSword::WardCharacterCharacter*" to "AActor*"...how can I resolve?
    I've searched for find error with the book, but there aren't.
    How can I resolve?

    HELP ME!!

    #2
    Cast<AActor>(WeaponHolder);
    Returns nullptr if cast failed or AActor* if successful.

    Comment

    Working...
    X