Skip to content

Set Player Variable

Description

Stores a value into a player variable, which is a variable that belongs to a specific player.

Snippet

Set Player Variable(Event Player, variableName, 0);

Properties

Returns: Void Parameters: ==Player==, ==Variable==, ==Value==

==Player== Type: Player | Array (Player), Default: Event Player The player whose variable will be set. If multiple players are provided, each of their variables will be set.

==Variable== Type: Player Variable, Default: A Specifies which of the player’s variables to store the value into.

==Value== Type: Object | Array, Default: Number The value that will be stored.

Type to search…

↑↓ navigate↵ selectEsc close