SlashCo Wiki

Player:SlasherValue

 any Player:SlasherValue( string value, any fallback )

Description

Returns a value from the player's current SlasherClass table.
Assumes the player is on the slasher team; no team check is performed.
If the player's slasher doesn't provide the value, the fallback is returned.

Arguments

1string value

Name of the slasher table field to retrieve

2any fallback

Value to return when the slasher table doesn't provide the requested field

Returns

1any value

Value from the slasher table, or the fallback value