findWalletHolder
findWalletHolder(
world,entity):Entity
Whose wallet coins entity earns go into: the player’s, where it is
the character characters() spawned for the player, or where it is no
character and a player stands behind it, such as the kart the player
drives. Coins outlive any character. It is the entity itself otherwise,
such as a rider on a track or a character no player plays, and where
the player’s save keeps the wallet on each saved entity.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
entity |
Entity |
Returns
Section titled “Returns”Entity