Page tree
Skip to end of metadata
Go to start of metadata


Introduced in

Version:1.00

Description

Description:Returns the network ID of an object. Deprecated command, use ObjToIdEx instead.

Syntax

Syntax:ObjToId object
Parameters:
Return Value:

Array of Number - [computer, networkID, localID] (if older than V1.31, only computer and network ID are returned):

  • computer: Where object was created (0 in SP).
  • networkID: Shared index of object (same on all connected multiplayer clients, 0 in SP).
  • localID: Local index of object (unique on each client).
    Note: This number can get very high, if there are a lot of objects on the map which can lead to floating point precision problems. Use ObjToIdEx instead.

Examples

Examples:
_myobj = ObjToId myObject

Additional Information

See also:IdToObjIdToGrpIdToTrgObjToIdExGrpToIdGrpToIdExTrgToId, TrgToIdExclientNameplayerToClient
Multiplayer:
Problems:

Notes