-
Notifications
You must be signed in to change notification settings - Fork 0
publicVariableServer
ffredyk edited this page Jul 23, 2026
·
1 revision
Multiplayer
Unary — publicVariableServer "<variableName>".
publicVariableServer <string> // quoted variable name
Sends the value of a global variable to the server only (not to other clients). The variable name is passed as a string. Useful for clients sending data to the server without broadcasting to everyone.
Placeholder/stub — full networking implementation is the host's responsibility.
Fires the host's public variable event targeted at the server only. More efficient than publicVariable when only the server needs the update.
// Client sends request to server
_playerAction = "ready";
publicVariableServer "_playerAction";
// Client reports position to server
_clientPos = [1234, 5678, 0];
publicVariableServer "_clientPos";Depends on host implementation.
- publicVariable — broadcast to all
- publicVariableClient — send to specific client
- 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