ObjectField
function

Description
Get the value of a field of an object.

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

Returns
Value The value of the field.