Login
Create

Set Player Variable At Index Last updated July 06, 2020

Description

Finds or creates an array on a player variable, which is a variable that belongs to a specific player, then stores a value in the array at the specified index.

Arguments

Name: PLAYER
Description: The player whose variable will be modified. If multiple players are provided, each of their variables will be set.
Type:

  • Player
  • Array: Player Default: EVENT PLAYER

Name: VARIABLE
Description: Specifies which player variable's value is the array to modify. If the variable's value is not an array, then its value becomes an empty array.
Type: PlayerVariable
Default: A

Name: INDEX
Description: The index of the array to modify. If the index is beyond the end of the array, the array is extended with new elements given a value of zero.
Type: unsigned int
Default: NUMBER

Name: VALUE
Description: The value that will be stored into the array.
Type:

  • Object
  • Array Default: NUMBER
Elo Hell Logo_H-M-Dark
Join the Elo Hell Workshops Discord