Animatable Body

self:get_net_id

Shared

Retrieves the network id of the animatable body

Syntax

local result = self:get_net_id()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
int | boolresultNetwork id of the instance, false if the instance is not replicated

Examples

Get the network id of a animatable body
local entity = physics.animatable.create()

core.engine.print("info", "Net ID:", entity:get_net_id())

On this page