Object:GetProductionQueue¶
Read production queue for this object.
object:GetProductionQueue()
Inputs: None beyond the Object receiver.
Output: Batch array or nil, reason. Building production batches in native order. Each entry has kind ("unit" or "research"), typeId, remaining quantity, and string batchId. Includes the current batch. Empty queue returns {}; unavailable or changing data returns nil and a reason.
Errors and unavailable states: A wrong receiver can raise a Lua argument error. Unavailable or changing native queue data returns nil, reason; {} means a successfully read empty queue.
See Lua values and game objects for lifetime and enum guidance.