FutureProg functions
tocharacter
Overload 1
tocharacter overload 1
Character tocharacter(CollectionItem character)
Available in
- computer function
- computer program
- standard futureprog
Converts a collection item to a character, if possible. Otherwise returns null.
| Parameter | Type | Description |
|---|---|---|
character |
CollectionItem |
The collection item to convert to a character. |
Overload 2
tocharacter overload 2
Character tocharacter(Number id)
Available in
- computer function
- computer program
- standard futureprog
Retrieves or loads a character by their ID. Does not add them to the gameworld if it does load them. Can return null if no character with that ID is found.
| Parameter | Type | Description |
|---|---|---|
id |
Number |
The id of the character to retrieve or load |
Overload 3
tocharacter overload 3
Character tocharacter(Perceivable character)
Available in
- computer function
- computer program
- standard futureprog
Converts a perceivable to a character, if possible. Otherwise returns null.
| Parameter | Type | Description |
|---|---|---|
character |
Perceivable |
The perceivable to convert to a character. |
Overload 4
tocharacter overload 4
Character tocharacter(Perceiver character)
Available in
- computer function
- computer program
- standard futureprog
Converts a perceiver to a character, if possible. Otherwise returns null.
| Parameter | Type | Description |
|---|---|---|
character |
Perceiver |
The perceiver to convert to a character. |
Overload 5
tocharacter overload 5
Character tocharacter(Toon character)
Available in
- computer function
- computer program
- standard futureprog
Converts a toon to a character, if possible. Otherwise returns null.
| Parameter | Type | Description |
|---|---|---|
character |
Toon |
The toon to convert to a character. |