예제 #1
0
 /// <summary>
 /// Attach this attachable to a Physical Element with an offset
 /// </summary>
 public void AttachTo(PhysicalElement toElement, Vector3 offset)
 {
     MtaShared.AttachElements(element, toElement.MTAElement, offset.X, offset.Y, offset.Z, 0, 0, 0);
 }
예제 #2
0
 /// <summary>
 /// Attach this attachable to a toAttachable with 2 vectors describing a position offset and a rotation offset
 /// </summary>
 public void AttachTo(PhysicalElement toElement, Vector3 positionOffset, Vector3 rotationOffset)
 {
     MtaShared.AttachElements(element, toElement.MTAElement, positionOffset.X, positionOffset.Y, positionOffset.Z, rotationOffset.X, rotationOffset.Y, rotationOffset.Z);
 }