ReferenceScripting APIMotionScenepick
MotionScene.pick
methodA random one of a list.
| Name | pick |
|---|---|
| Kind | method of MotionScene |
| Called as | scene.pick(…) |
| As a node | Random List Item (logic graph) |
| Since | 0.3 |
Syntax
pick<T>(list: readonly T[]): T | undefinedParameters
| Name | Type | Description |
|---|---|---|
list | readonly T[] | The list |
Returns
T | undefined: one of it, or undefined for an empty list.
See also
In examples: Constellations, Rain Harbour
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.