attachTo: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Description, return value, example added) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | |Attaches an object to another object. The offset is applied to the object center unless a memory point is provided. |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|Object '''attachTo''' [TObject,Offset] |= Syntax | |Object '''attachTo''' [TObject,Offset,MemPoint] |= Syntax | ||
|p1= Object: [[Object]] or [[player]] |= Parameter 1 | |p1= Object: [[Object]] or [[player]] |= Parameter 1 | ||
|p2= TObject: [[Object]] or [[player]] |= Parameter 2 | |p2= TObject: [[Object]] or [[player]] |= Parameter 2 | ||
|p3= Offset: Array - format Position |= Parameter 3 | |p3= Offset: Array - format Position |= Parameter 3 | ||
|p4= MemPoint: [[String]] - (optional) |= Parameter 4 | |||
| | |[[Nothing]] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <pre>player attachTo [car,[0,0,1]]; </pre> |= Example 1 | |x1= <pre>player attachTo [car,[0,0,1]]; </pre> |= Example 1 | ||
|x2= <pre>player attachTo [tank,[0,-1,0],"Usti hlavne"]; </pre> |= Example 2 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 00:20, 5 June 2009
Description
- Description:
- Attaches an object to another object. The offset is applied to the object center unless a memory point is provided.
- Multiplayer:
- Only has to be executed on one client.
- Groups:
- Uncategorised
Syntax
- Syntax:
- Object attachTo [TObject,Offset,MemPoint]
- Parameters:
- Object: Object or player
- TObject: Object or player
- Offset: Array - format Position
- MemPoint: String - (optional)
- Return Value:
- Nothing
Examples
- Example 1:
player attachTo [car,[0,0,1]];
- Example 2:
player attachTo [tank,[0,-1,0],"Usti hlavne"];
Additional Information
- See also:
- detach
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note