GetObjectAttachmentInfo: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 11: Line 11:


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua>
print("Object Attach Information: " .. GetObjectAttachmentInfo(object))
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{Template:ObjectFunctions}}

Latest revision as of 14:31, 26 June 2021

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