jcraig358
8 months agoPartner
Send network event to server
Hi,
Wondering, is there a way to send a network event from player to server without using broadcast?
I tried sendNetworkEvent(this.world.getServerPlayer()...) but it doesn't accept the server player.
Thanks,
John
A network event is the only way to communicate from a local script owned by the player to a default script owned by the server, but you wouldn't send the event to the serverplayer, you would send it to the entity running the default script. So your local script needs some reference to the entity it wants to send the event.