-
Notifications
You must be signed in to change notification settings - Fork 0
publicVariableClient
ffredyk edited this page Jul 23, 2026
·
1 revision
Multiplayer
Binary — <variableName> publicVariableClient <clientId>.
<string> publicVariableClient <number>
Sends the value of a global variable to a specific client identified by client ID. The variable name is the left operand. Only the targeted client receives the update.
Placeholder/stub — full networking implementation is the host's responsibility.
Fires the host's public variable event targeted at a specific client ID. More efficient than broadcasting when only one client needs the data.
// Send private message to client 3
_privateMsg = "You have been promoted!";
"_privateMsg" publicVariableClient 3;
// Send targeted data
_playerData = ["name", "rank", 42];
"_playerData" publicVariableClient _targetClientId;Depends on host implementation.
- publicVariable — broadcast to all
- publicVariableServer — send to server
- remoteExec — remote code execution
- 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