RPC Issues / Questions
I have looked all over and read a lot of documentation (that I will post at the end of this) but cannot seem to get my server function to work! Thus, I turn to you for help.
My guess is that it has to do with the PlayerCharacter->Role, but I am unsure what other actor I would check it against though.
Thank you all again for the assistance. https://docs.unrealengine.com/latest/INT/Gameplay/Networking/Actors/OwningConnections/index.html https://docs.unrealengine.com/latest/INT/Gameplay/Networking/Actors/Roles/index.html https://docs.unrealengine.com/latest/INT/Gameplay/Networking/Actors/RPCs/#rpcinvokedfromtheserver https://docs.unrealengine.com/latest/INT/Gameplay/Networking/Blueprints/index.html https://docs.unrealengine.com/latest/INT/Gameplay/Networking/Example/index.html https://docs.unrealengine.com/latest/INT/Gameplay/Networking/index.html
A server function will never not be ROLE_AUTHORITY. This means your condition that checks if its less than that will never be true because its called on the server.
This condition will only ever be useful if you call it from a function that can be called by either a server or a client, or authority or remote.
You could do something like:
Follow this question
Once you sign in you will be able to subscribe for any updates here