GetObjectAttachmentInfo: Difference between revisions

From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|GetObjectAttachmentInfo(object)}} {{FuncParameters}} {{FuncParam|object|__EDIT_ME__}} {{FuncRetur..."
 
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Info|Function|Server|1.0}}
{{Info|Function|Server|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Gets information on this attached object.}}


{{FuncSyntax|GetObjectAttachmentInfo(object)}}
{{FuncSyntax|GetObjectAttachmentInfo(object)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|object|__EDIT_ME__}}
{{FuncParam|object|The object identifier.}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|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 ==
== 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