Dragon-Engine icon indicating copy to clipboard operation
Dragon-Engine copied to clipboard

API for client -> server RemoteEvents is needed

Open NobleDraconian opened this issue 4 years ago • 0 comments

Currently, there is no way to register a service remote event that clients can fire. Usecases include things like character sound replication, custom character state change events, etc. An API method is needed for this. It could look something like DragonEngine:RegisterServiceClientInvokableEvent() or somesuch. This API method would return the generated remote event, which would be parented under a new folder under the service's folder in ReplicatedStorage, called "ClientInvokableEvents" or something similiar. On the client, these events would be stored in the service's table, e.g. AvatarService.ReplicateSound = <RemoteEvent>. From there, a client sided script can fire the event to the server via ServiceName.EventName:FireServer().

NobleDraconian avatar Dec 06 '20 02:12 NobleDraconian