getUserInfo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
No edit summary
Line 28: Line 28:
Execute on server: <code>[[private]] _randomUserInfo = [[getUserInfo]] [[selectRandom]] [[allUsers]];</code>
Execute on server: <code>[[private]] _randomUserInfo = [[getUserInfo]] [[selectRandom]] [[allUsers]];</code>


|seealso= [[allUsers]] [[getPlayerID]]
|seealso= [[allUsers]] [[getPlayerID]] [[getUnitFreefallInfo]]
}}
}}

Revision as of 12:35, 9 February 2022

Hover & click on the images for description

Description

Description:
Returns extended information about given server user.
Groups:
MultiplayerObject Detection

Syntax

Syntax:
getUserInfo networkID
Parameters:
networkID : String - user network id (see getPlayerID, allUsers)
Return Value:
Array in format: [networkId, owner, playerUID, soldierName, soldierNameInclSquad, steamProfileName, clientStateNumber, isHeadless, adminState, [avgPing, avgBandwidth, desync], playerObject], where:

Examples

Example 1:
Execute on server: private _randomUserInfo = getUserInfo selectRandom allUsers;

Additional Information

See also:
allUsers getPlayerID getUnitFreefallInfo

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note