Model
self:get_net_id
SharedRetrieves the network id of the model
Syntax
local result = self:get_net_id()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
int | bool | result | Network id of the instance, false if the instance is not replicated |
Examples
core.model.load("character", "models/character.glb")
local entity = core.model.create("character")
core.engine.print("info", "Net ID:", entity:get_net_id())