ObjectDescriptor
function

Description
Get the value of a descriptor of an object.

Arguments
Object A pointer to an object or a unit ID.
Offset The offset of the descriptor.
Type A member of the Types table specifying the type of the descriptor.

Returns
Value The value of the descriptor.