Regular API function

simCreateCollection / sim.createCollection

Description Creates a new collection. A collection created in a child script, a customization script or int the main script will be automatically destroyed when the script ends. See also the other functions related to collections.
C synopsis simInt simCreateCollectionEx(simInt options)
C parameters
options: bit-coded options:
bit 0 set (1): collection overrides collidable, measurable, renderable and detectable properties.
C return value
-1 if operation was not successful, otherwise the handle of the new collection.
Lua synopsis int collectionHandle=sim.createCollection(int options)
Lua parameters
Similar to the C-function counterpart
Lua return values
Similar to the C-function counterpart