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



Introduced in

Version:2.08

Description

Description:Returns the network ID for a specific unit (object). Only works while inside a mission. To return the client ID, even in the multiplayer lobby, use clientID.

Syntax

Syntax:playerToClient unit
Parameters:
  • unit: Object - Unit that is used by the client.
Return Value:Number - Network ID of unit.

Examples

Examples:
_id = playerToClient (allUnits select 1)

Additional Information

See also: clientName, clientID, clientToPlayer, allClients
Multiplayer: 
Problems: 

Notes