GetObjectsByTypes¶
Read objects by types from current game state.
GetObjectsByTypes(objectTypes[, ...])
Inputs: Pass one or more integer object type IDs, or one dense integer array.
Output: Array matching any supplied type.
Errors and unavailable states: Scalar arguments of the wrong type raise a Lua argument error. In a table, non-numeric entries are silently skipped. An empty result has no separate error flag.
See Game data and world for related calls and usage notes.