Skip to content

PlayerProfiles

Description

PlayerProfiles is a object attached to a Store that automaticly creates a Profile for each player that is in the place. and fires the given callback with the Profile as a argument.

Properties

  • Profiles - A dictonary of all the Profiles, where the player instance is the key.

Signals

OnPlayerAdded

Fires:

Fires whenever a player joins and a profile is attached to that player.

Arguments:

  • Profile - The profile that is attached to the player.

OnPlayerRemoving

Fires:

Fires right before a player leaves and the profile is removed from the Profiles dictionary.

Arguments:

  • Profile - The profile that is attached to the player.