Skip to content

objectFromNetId

ffredyk edited this page Jul 23, 2026 · 1 revision

objectFromNetId

Category

Multiplayer

Arity

UnaryobjectFromNetId <netIdString>.

objectFromNetId <string>

Description

Looks up an object by its network ID string. Placeholder: always returns nil. Full implementation requires host networking layer with object tracking.

Registered by DeclareMultiplayerCommands(). NOT called automatically — host must invoke explicitly.

How It Works

Placeholder stub. In a full implementation, resolves a network ID string back to the corresponding object reference.

Usage

_obj = objectFromNetId "2:123";   // nil (placeholder)

if (!isNil "_obj") then {
    systemChat f"Found: {_obj}";
};

Thread Safety

ReadOnly — pure query (stub).

See Also

SQ# Wiki

Home

Engine Docs

Migration

Commands

Value Constructors

Arithmetic

Comparison

Logic

Array

String

Math

Random

Type & Introspection

HashMap

Code Execution

Concurrency

Scheduler

Thread Safety

Error

Output

Time

Multiplayer

Compiler

Clone this wiki locally