SetObjectAttached

From Onset Developer Wiki
Revision as of 18:24, 13 October 2019 by BlueMountains (talk | contribs)
SetObjectAttached

Type: Function
Context: Server
Introduced: v1.0

Description

__EDIT_ME__

Syntax

SetObjectAttached(object, attachtype, attachid, x, y, z [, rx, ry, rz, SocketName])

Parameters

  • object
    The object identifier from CreateObject.
  • attachtype
    AttachType
  • attachid
    The identifier of the other entity you want to attach to.
  • x
    Relative X location.
  • y
    Relative Y location.
  • z
    Relative Z location.
  • rx (optional)
    Relative pitch rotation.
  • ry (optional)
    Relative yaw rotation.
  • rz (optional)
    Relative roll rotation.
  • SocketName (optional)
    Socket where to attach to (PlayerBones). Can be empty.

Return Value

  • Returns true on success.

Example

__EDIT_ME__

See also

__EDIT_ME__