Skip to main content

Role.GetImmunity

Shared
number Lyn.Player.Role.GetImmunity(Player target)Function

Description

Returns the immunity level of the highest role the specified player has.

Returns 0 if the player has no roles.

Params

  1. Player target

Returns

  1. The immunity level of the highest role the player has. Or 0 if none.

Example:

print(Lyn.Player.Role.GetImmunity(Entity(1)))

-- Output:
-- 100