getPlayerLevel

From Bohemia Interactive Community
Revision as of 19:23, 7 December 2023 by Lou Montana (talk | contribs) (Page creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Return the level of the provided player.
Multiplayer:
Only works in multiplayer (on both server and clients).
Groups:
Argo

Syntax

Syntax:
getPlayerLevel unit
Parameters:
unit: Object - a player-controlled unit
Return Value:
Number - the provided player's level or -1 on error (unreachable servers, not a player, etc)

Examples

Example 1:
player addEventHandler ["Killed", { if (getPlayerLevel _remotePlayer < getCurrentPlayerLevel) then { hint "oooooooooh!"; }; }];

Additional Information

See also:
getCurrentPlayerLevel isPlayerSupporter

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