Skip to content

EXP_BaseListValue

Class Range.types.EXP_BaseListValue.

These items exist in the engine but were not in the Range documentation. The ones marked new in Anastacio were added by Anastacio Engine.

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.

method

How many times the item appears in the list.

Returns: int

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

method

Finds the item by its Python id(). Useful to store a reference to an object as a number.

Returns: object

method

Item with that name, or default if it doesn’t exist. E.g. scene.objects.get('Player').

Returns: object

method

Position of the item in the list. Raises an error if it isn’t there.

Returns: int

method

Reverses the list order. Only on lists created by the script.