Role.GetImmunity
Shared
number Lyn.Player.Role.GetImmunity(Player target)FunctionDescription
Returns the immunity level of the highest role the specified player has.
Returns 0 if the player has no roles.
Params
Playertarget
Returns
The immunity level of the highest role the player has. Or
0if none.
Example:
print(Lyn.Player.Role.GetImmunity(Entity(1)))
-- Output:
-- 100