Get Role and owning network in blueprint

Why is there only a ‘get remote role’ function?

Sometimes I want to execute something in actor BP only when role==ROLE_Authority. I think that’s fairly reasonable. Not sure what I’m missing here. Is there a different / more convenient approach to do this?

Thanks in advance.

The role itself is not exposed in blueprints, but there exists a “HasAuthority” actor blueprint node that does return exactly Role == ROLE_Authority.

Thanks for the answer and you are right.

For this particular question though I believe what I needed was node “IsLocallyControlled”. I didn’t know the right question at the time. Just in case anyone sees this and needs the same thing.

drag the pin out of local role and with the checkbox checked do utilities->enum-> equal(enum)