EXP_BaseListValue
Class Range.types.EXP_BaseListValue.
Not in the Range documentation
Section titled “Not in the Range documentation”These items exist in the engine but were not in the Range documentation. The ones marked new in Anastacio were added by Anastacio Engine.
append(item)
Section titled “append(item)”method
Adds an item at the end of the list. Only works on lists created by the script; internal engine lists (e.g. scene.objects) can’t be changed.
count(item)
Section titled “count(item)”method
How many times the item appears in the list.
Returns: int
filter(name, prop=‘’)
Section titled “filter(name, prop=‘’)”method
New list with only the items whose name contains name and that have the game property prop. At least one of the two must be given.
Returns: EXP_ListValue
from_id(id)
Section titled “from_id(id)”method
Finds the item by its Python id(). Useful to store a reference to an object as a number.
Returns: object
get(key, default=None)
Section titled “get(key, default=None)”method
Item with that name, or default if it doesn’t exist. E.g. scene.objects.get('Player').
Returns: object
index(item)
Section titled “index(item)”method
Position of the item in the list. Raises an error if it isn’t there.
Returns: int
reverse()
Section titled “reverse()”method
Reverses the list order. Only on lists created by the script.
