GSC reference › Built-in
ClientSysRegister()
Built-in (engine)
Server
Declares a system who's state will be communicated over to the client script system when it changes. Takes a unique name, and returns the id of the system.
Signature
ClientSysRegister(<name>)
Parameters
| Name | Required? | Details |
|---|---|---|
| name | Required | The unique name of the system to be registered |
Example (from Treyarch's docs)
index = ClientSysRegister("FakeFire") Real uses in BO3's scripts
Called 1 time in the decompiled scripts. A few, zombies first:
- scripts/shared/util_shared.gsc, line 1652
level._clientsys[ssysname].sysid = clientsysregister(ssysname);
Related built-ins
- RegisterClientField()Register a client field.
- SessionModeIsSystemlink()Returns true/false if the current session mode is a systemlink game
- RegisterRewindFX()Registers an fx with the killcam rewind system
- GetSystemTime()Returns the time of the system in a vector where the 0 index is hours (in 24hr time), 1 is minutes, and 2 is seconds
- ClientSysSetState()Sets the state of a pre registered client system for all clients.
- RegisterSkipto()Register a new skipto name
- serverfieldregister()Register a server field.
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).