Module for controlling game objects.
trx.objects.ObjectRepresents a moveable object type.
Properties:
properties: Table of typed object properties. Values written here
become defaults for future item initialization and spawns; existing items
are not changed retroactively.Properties are object-specific; see Objects for the
documented properties on each object. Property tables can be iterated with
pairs().
trx.objects[object_id]Retrieves an object proxy for the given object ID.
Example:
trx.objects[trx.catalog.objects.wolf].properties.max_hit_points = 30
for name, value in pairs(trx.objects[trx.catalog.objects.wolf].properties) do
trx.log.info(name .. " = " .. tostring(value))
end
trx.objects.swap_mesh(obj1_id, obj2_id, mesh1_num, mesh2_num)trx.objects.swap_mesh(trx.catalog.objects.pierre, trx.catalog.objects.larson, 8, 8)trx.objects.swap_mesh(obj1_id, obj2_id)trx.objects.swap_mesh(trx.catalog.objects.pierre, trx.catalog.objects.larson)trx.objects.swap_mesh(trx.catalog.objects.pierre, trx.catalog.objects.warrior_1)