Download

GetOwnerRole() not working

My GetOwnerRole() is not working. Help me please…
{

if (GetOwnerRole() < ROLE_Authority) {
}
else {
    Thirst -= Value;
}

Error C3861 ‘GetOwnerRole’: identifier not found

Are you calling it on the ActorComponent?

As Garner alluded to above, GetOwnerRole() is for ActorComponents.

If calling from an actor, use GetLocalRole().