BlueprintAuthorityOnly C++ Equivalent

anonymous_user_33e74471
Thu, 23 Apr 2015 19:41:48 +0000
C++

Hi all,
I’ve noticed I run into a situation a lot of the time where I have C++ functions that I’d like to only ever run on authority, and I end up manually verifying that the code is running on authority. It happens often enough that I’m wondering if there’s a C++ equivalent to BlueprintAuthorityOnly that I can use for C++ functions, because all the checks make my code a little less readable, and I feel like there’s probably some amount of optimization that could be done when the compiler knows for certain that some functions will run exclusively on authority.

Just curious if anybody else has any ideas.

3 posts - 1 participant