-
Notifications
You must be signed in to change notification settings - Fork 0
remoteExec
ffredyk edited this page Jul 23, 2026
·
1 revision
Multiplayer
Binary — <args> remoteExec [commandName, target, isJip].
<any> remoteExec <array> // [commandName, target, isJip]
Schedules remote execution of a command on target machines. The left operand is passed as arguments. The right operand is an array:
-
commandName— string name of the command/function to execute -
target— who executes it:-
0= everyone -
2= server only -
-2= everyone except server - Client ID = specific client
-
-
isJip— boolean: should Join-In-Progress clients also execute?
Uses spawn semantics (async). The command must be registered on the target machine.
Placeholder/stub — full networking implementation is the host's responsibility.
Fires the host's remote execution event. The host must implement the actual network transport (UDP/TCP, serialization, client tracking). The command name and args are serialized and sent to target machines.
// Execute everywhere
[params] remoteExec ["fn_process", 0, false];
// Execute on server only
[data] remoteExec ["fn_saveToDB", 2, false];
// Execute everywhere except server
[notification] remoteExec ["fn_showHint", -2, false];
// Execute on specific client
[message] remoteExec ["fn_displayChat", _clientId, false];Note: Full networking requires host implementation. See
docs/multiplayer.md.
Depends on host implementation. The stub is thread-safe.
- remoteExecCall — remote exec with call semantics
- publicVariable — broadcast variable
- spawnOn — cross-scheduler spawn (local only)
- Getting Started
- Language Guide
- Type System
- Control Flow
- Functions & Code
- Strings & Text
- Arrays & Collections
- Concurrency
- Promise System
- Thread Safety
- Host API & Embedding
- CLI Tool
- Bytecode Reference
- Multiplayer
- Syntax Sugar
- Optimization Guide
- Benchmarks
- count
- select
- pushBack
- append
- deleteAt
- deleteRange
- resize
- reverse
- sort
- find
- in
- forEach
- freeze
- thaw
- isFrozen
- currentScheduler
- clientOwner
- allSchedulers
- schedulerName
- schedulerExists
- schedulerBudget
- setSchedulerBudget
- fiberCount
- readyFiberCount
- waitingFiberCount
- schedulerLoad
- sendTo