Add an event payload to SendCustomNetworkEvent
Skuld
It would be very useful for security and other purposes to have an event payload for methods received by SendCustomNetworkEvent.
Example method and usage:
[NetworkCallable]
public void MyCustomEvent(NetworkCustomEvent event, ...)
{
//check if the calling user is eligible to have called the method.
if ( PlayerInAdminList(event.requestingPlayer.displayName) != true)
return; //return and do not execute the method
}
Log In