GetPlayerSkill
The level of a skill, as the server last heard or set it.
What the player’s game last reported, or what the mode last set - and, where the progression check acts under
[audit] mode = "enforce", never more than the server can explain. 0 means the server does not know it: the player’s
game has not reported yet, or the name is no skill.
Syntax
Section titled “Syntax”GetPlayerSkill(pid, skill)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
skill |
string | the skill’s name |
Returns
Section titled “Returns”number - 0 .. 30; 0 = not known (not reported yet, a stat’s name, or a player not connected)
Example
Section titled “Example”Log(GetPlayerName(pid), "marksmanship", GetPlayerSkill(pid, "marksmanship"))See also
Section titled “See also”SetPlayerSkill · GetPlayerSkillXP · GetPlayerStat · GetPlayerProgress · the Stats, skills, XP and perks group of the index
