> For the complete documentation index, see [llms.txt](https://vc-docs.gitbook.io/engine/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vc-docs.gitbook.io/engine/home/doxygen_synced/classes/class_jint_b_e.md).

# JintBE

**Usage:** `api.JintBE.CmdJint("doThing(1,2);")`

Run script functions on the server, or push updates out to every client. Accessed through `JintBE`.

## Public Functions

|      | Name                                                                                                                                                                                                                                                                                                                                                                          |
| ---- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| void | <p><a href="https://git.unimetaverse.net/vc-core-engine/doxygen/-/tree/main/Classes/Classes/class_jint_b_e.md#function-cmdjint"><strong>CmdJint</strong></a>(string command)<br>Runs a line of script on the server.</p>                                                                                                                                                      |
| void | <p><a href="https://git.unimetaverse.net/vc-core-engine/doxygen/-/tree/main/Classes/Classes/class_jint_b_e.md#function-cmdjint"><strong>CmdJint</strong></a>(string function, params string\[] vars)<br>Calls a global function on the server. Builds and runs <code>function(args...)</code>.</p>                                                                            |
| void | <p><a href="https://git.unimetaverse.net/vc-core-engine/doxygen/-/tree/main/Classes/Classes/class_jint_b_e.md#function-cmdjintself"><strong>CmdJintSelf</strong></a>(string function, string scriptObj, params string\[] vars)<br>Calls a function on a specific script object, on the server. Builds and runs <code>scriptObj.function(args...)</code>.</p>                  |
| void | <p><a href="https://git.unimetaverse.net/vc-core-engine/doxygen/-/tree/main/Classes/Classes/class_jint_b_e.md#function-rpcupdatetransform"><strong>RpcUpdateTransform</strong></a>(UnityEngine.GameObject go)<br>Updates the object's position and rotation on every client to match its current values.</p>                                                                  |
| void | <p><a href="https://git.unimetaverse.net/vc-core-engine/doxygen/-/tree/main/Classes/Classes/class_jint_b_e.md#function-rpcupdatematcolor"><strong>RPCUpdateMatColor</strong></a>(UnityEngine.GameObject go, Color color)<br>Sets the object's color on every client. Does nothing if the object is null or has no mesh renderer.</p>                                          |
| void | <p><a href="https://git.unimetaverse.net/vc-core-engine/doxygen/-/tree/main/Classes/Classes/class_jint_b_e.md#function-rpcsetrigidbody"><strong>RPCSetRigidbody</strong></a>(UnityEngine.Rigidbody rb, UnityEngine.Vector3 vel, UnityEngine.Vector3 angularVel)<br>Sets a rigidbody's velocity and angular velocity on every client.</p>                                      |
| void | <p><a href="https://git.unimetaverse.net/vc-core-engine/doxygen/-/tree/main/Classes/Classes/class_jint_b_e.md#function-rpcjint"><strong>RpcJint</strong></a>(Engine engine, string command)<br>Runs a line of script on every client.</p>                                                                                                                                     |
| void | <p><a href="https://git.unimetaverse.net/vc-core-engine/doxygen/-/tree/main/Classes/Classes/class_jint_b_e.md#function-rpcjint"><strong>RpcJint</strong></a>(Engine engine, string function, params string\[] vars)<br>Calls a global function on every client. Builds and runs <code>function(args...)</code>.</p>                                                           |
| void | <p><a href="https://git.unimetaverse.net/vc-core-engine/doxygen/-/tree/main/Classes/Classes/class_jint_b_e.md#function-rpcjintself"><strong>RpcJintSelf</strong></a>(Engine engine, string function, string scriptObj, params string\[] vars)<br>Calls a function on a specific script object, on every client. Builds and runs <code>scriptObj.function(args...)</code>.</p> |

## Public Functions Documentation

### function CmdJint

```csharp
static void CmdJint(
    string command
)
```

Runs a line of script on the server.

**Parameters**:

* **command** The script to run, e.g. `"doThing(1, 2);"`.

```csharp
static void CmdJint(
    string function,
    params string[] vars
)
```

Calls a global function on the server. Builds and runs `function(args...)`.

**Parameters**:

* **function** Name of the function to call.
* **vars** Arguments, as script expressions.

### function CmdJintSelf

```csharp
static void CmdJintSelf(
    string function,
    string scriptObj,
    params string[] vars
)
```

Calls a function on a specific script object, on the server. Builds and runs `scriptObj.function(args...)`.

**Parameters**:

* **function** Name of the function to call.
* **scriptObj** Name of the script object to call it on.
* **vars** Arguments, as script expressions.

### function RpcUpdateTransform

```csharp
static void RpcUpdateTransform(
    UnityEngine.GameObject go
)
```

Updates the object's position and rotation on every client to match its current values.

**Parameters**:

* **go** The object to update everywhere.

### function RPCUpdateMatColor

```csharp
static void RPCUpdateMatColor(
    UnityEngine.GameObject go,
    Color color
)
```

Sets the object's color on every client. Does nothing if the object is null or has no mesh renderer.

**Parameters**:

* **go** Target object.
* **color** Color to apply.

### function RPCSetRigidbody

```csharp
static void RPCSetRigidbody(
    UnityEngine.Rigidbody rb,
    UnityEngine.Vector3 vel,
    UnityEngine.Vector3 angularVel
)
```

Sets a rigidbody's velocity and angular velocity on every client.

**Parameters**:

* **rb** The rigidbody to update.
* **vel** Linear velocity.
* **angularVel** Angular velocity.

### function RpcJint

```csharp
static void RpcJint(
    Engine engine,
    string command
)
```

Runs a line of script on every client.

**Parameters**:

* **engine** Unused.
* **command** The script to run, e.g. `"doThing(1, 2);"`.

```csharp
static void RpcJint(
    Engine engine,
    string function,
    params string[] vars
)
```

Calls a global function on every client. Builds and runs `function(args...)`.

**Parameters**:

* **engine** Unused.
* **function** Name of the function to call.
* **vars** Arguments, as script expressions.

### function RpcJintSelf

```csharp
static void RpcJintSelf(
    Engine engine,
    string function,
    string scriptObj,
    params string[] vars
)
```

Calls a function on a specific script object, on every client. Builds and runs `scriptObj.function(args...)`.

**Parameters**:

* **engine** Unused.
* **function** Name of the function to call.
* **scriptObj** Name of the script object to call it on.
* **vars** Arguments, as script expressions.

***

Updated on 2026-07-22 at 12:00:00 +0800
