GetObjectAttachmentInfo

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
GetObjectAttachmentInfo

Type: Function
Context: Server
Introduced: v1.0

Description

Gets information on this attached object.

Syntax

GetObjectAttachmentInfo(object)

Parameters

  • object
    The object identifier.

Return Value

  • Returns two integers. First one being the attach type (ie ATTACH_VEHICLE, AttachType) and the second one the identifier to what this object is attached to. See SetObjectAttached.

Example

print("Object Attach Information: " .. GetObjectAttachmentInfo(object))

See also