Description
Attaches entity to the rope end with optional offset. For detach operation use ropeDetach.
Syntax
Syntax 1
[entity, toPoint, ropeEndDownVector] ropeAttachTo rope
Parameters:
entity: Object - entity to be attached to the end of ropetoPoint: String or Array - (Optional) position for the rope end, either a memory point String or relative offset ArrayropeEndDownVector: String or Array - (Optional, default [0,0,-1]) either a memory point String or relative vector Array. If String is given, thenropeEndDownVectoris calculated fromtoPointtowardsropeEndDownVectormemory pointrope: Object - the rope to which entity will be attached to
Returns: Nothing
Syntax 2
since arma3 2.10
entity ropeAttachTo rope
Parameters:
entity: Object - entity to be attached to the end of roperope: Object - the rope to which entity will be attached to
Returns: Nothing
Examples
Example 1
[veh1, [0,0,0], [0,0,-1]] ropeAttachTo (ropes heli1 select 0);
See also
ropes · canSlingLoad · enableRopeAttach · getSlingLoad · ropeAttachedObjects · ropeDestroy · ropeLength · ropeUnwound · ropeAttachedTo · ropeCreate · ropeDetach · ropeAttachEnabled · ropeCut · ropeEndPosition · ropeUnwind · setSlingLoad · slingLoadAssistantShown