Arma 3 Scripting

Command in Multiplayer, Markers

getPlayerID

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns user DirectPlay ID, which can be used with getUserInfo, and is found in allMapMarkers results and in some mission event handlers such as PlayerConnected.

Syntax

getPlayerID unit

Parameters:

Returns: String - "-1" if object is not a player

Examples

Example 1

getPlayerID player;

See also

allUsers · getUserInfo · createMarker · createMarkerLocal · getObjectID