SlashCo Wiki

Player:ItemFunctionInternal

 any Player:ItemFunctionInternal( string value, string slot, any ... )

Description

This is used internally - although you're able to use it you probably shouldn't.
Internal helper used by Player:ItemFunction and Player:SecondaryItemFunction.
Calls the given callback on each of the player's active effects first; if none of them return a non-nil value, falls back to calling it on the item equipped in the given slot.

Arguments

1string value

Name of the callback function to call.

2string slot

"item" or "item2".

3any ...

Additional arguments passed to the callback.

Returns

1any ...

The first non-nil return value from an active effect, or the item's return value.