Module for controlling all moveables behavior.
TRX.Items.ITEMRepresents an item, also known as a moveable.
Properties:
pos: A table with fields x, y, z representing position.rot: A table with fields x, y, z representing rotation.room: Integer representing the room number.status: Integer representing the item's status.hit_points: Integer representing the item's hit points.max_hit_points: Integer representing the item's hit points.object_id: Integer ID of the item's object type.name: String name of the item, or nil if none.Writable properties:
pos (updating this also updates room)rothit_points (updating this also may increase max_hit_points)max_hit_pointsname (string identifier; setting duplicates raises an error)TRX.Items.Count()TRX.Items.Get(index)TRX.Items.ITEMnil if out of range.
TRX.Items.GetByName(name)TRX.Items.ITEMname, or nil if not found.TRX.Lara.GetItem().name = "lara"
TRX.Items.GetByName("lara") -- contains Lara item