SlashCo Wiki

Player:SlasherFunction

 any Player:SlasherFunction( string value, any ... )

Description

Calls a function stored on the player's current SlasherClass table, passing the player itself as the first argument.
Assumes the player is on the slasher team; no team check is performed.
Does nothing and returns nothing if the slasher table doesn't have a function under that name.

Arguments

1string value

Name of the function field to call on the slasher table

2any ...

Additional arguments to pass to the function

Returns

1any ...

The return values of the called function