SlashCo Wiki

Player:PerkValue

 any Player:PerkValue( string valueName, any fallback )

Description

Returns a value from the player's active perks.
The first active perk containing the requested value is used.
If no active perk provides the value, the fallback is returned.

Arguments

1string valueName

Name of the perk value to retrieve

2any fallback

Value to return when no active perk provides the requested value

Returns

1any value

Value supplied by an active perk or the fallback value