SetObjectAttached: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|object| | {{FuncParam|object|The object identifier from [[CreateObject]].}} | ||
{{FuncParam|attachtype| | {{FuncParam|attachtype|[[AttachType]]}} | ||
{{FuncParam|attachid| | {{FuncParam|attachid|The identifier of the other entity you want to attach to.}} | ||
{{FuncParam|x| | {{FuncParam|x|Relative X location.}} | ||
{{FuncParam|y| | {{FuncParam|y|Relative Y location.}} | ||
{{FuncParam|z | | {{FuncParam|z|Relative Z location.}} | ||
{{FuncParamOptional|rx| | {{FuncParamOptional|rx|Relative pitch rotation.}} | ||
{{FuncParamOptional|ry| | {{FuncParamOptional|ry|Relative yaw rotation.}} | ||
{{FuncParamOptional|rz| | {{FuncParamOptional|rz|Relative roll rotation.}} | ||
{{FuncParamOptional|SocketName| | {{FuncParamOptional|SocketName|Socket where to attach to ([[PlayerBones]]). Can be empty.}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns '''true''' on success.}} | ||
== Example == | == Example == |
Revision as of 18:24, 13 October 2019
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__