You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use case example: player position setter with preloading textures of area
Serverside
// for this example, we dont care what happens with this promiserpc.emitClient(player,'loadArea',newalt.Vector3(0,0,72))rpc.abortPendingClientEmit(player,'loadArea')// if pending, promise of previous call will be rejectedawaitrpc.emitClient(player,'loadArea',newalt.Vector3(222,222,222))// another random locationplayer.pos=newalt.Vector3(222,222,222)
It may need addition of unique ID for each rpc call because client may send response of aborted rpc back to server when server aborted previous call and already called same rpc name again
The text was updated successfully, but these errors were encountered:
Use case example: player position setter with preloading textures of area
Serverside
Clientside (nothing really changes here):
Implementation details:
It may need addition of unique ID for each rpc call because client may send response of aborted rpc back to server when server aborted previous call and already called same rpc name again
The text was updated successfully, but these errors were encountered: