getPlayerLevel: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page creation) |
Lou Montana (talk | contribs) m (Fix example) |
||
Line 19: | Line 19: | ||
|x1= <sqf>player addEventHandler ["Killed", { | |x1= <sqf>player addEventHandler ["Killed", { | ||
if (getPlayerLevel | _killer = _this select 1; | ||
if (getPlayerLevel _killer < getCurrentPlayerLevel) then | |||
{ | { | ||
hint "oooooooooh!"; | hint "oooooooooh!"; |
Revision as of 18:27, 7 December 2023
Description
- Description:
- Return the level of the provided player.
- Multiplayer:
- 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", { _killer = _this select 1; if (getPlayerLevel _killer < 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