/// <summary>
 /// Attaches this <see cref="Camera"/> to a specific <see cref="PedBone"/>.
 /// </summary>
 /// <param name="pedBone">The <see cref="PedBone"/> to attach to.</param>
 /// <param name="offset">The offset from the <paramref name="pedBone"/> to attach to.</param>
 public void AttachTo(PedBone pedBone, Vector3 offset)
 {
     API.AttachCamToPedBone(Handle, pedBone.Owner.Handle, pedBone, offset.X, offset.Y, offset.Z, true);
 }
Example #2
0
 /// <summary>
 /// Attaches this <see cref="Camera"/> to a specific <see cref="PedBone"/>.
 /// </summary>
 /// <param name="pedBone">The <see cref="PedBone"/> to attach to.</param>
 /// <param name="offset">The offset from the <paramref name="pedBone"/> to attach to.</param>
 public void AttachTo(PedBone pedBone, Vector3 offset)
 {
     Function.Call(Hash.ATTACH_CAM_TO_PED_BONE, Handle, pedBone.Owner.Handle, pedBone, offset.X, offset.Y, offset.Z, true);
 }
 /// <summary>
 /// Points this <see cref="Camera"/> at a specified <see cref="PedBone"/>.
 /// </summary>
 /// <param name="target">The <see cref="PedBone"/> to point at.</param>
 /// <param name="offset">The offset from the <paramref name="target"/> to point at</param>
 public void PointAt(PedBone target, Vector3 offset = default(Vector3))
 {
     API.PointCamAtPedBone(Handle, target.Owner.Handle, target, offset.X, offset.Y, offset.Z, true);
 }
Example #4
0
 /// <summary>
 /// Points this <see cref="Camera"/> at a specified <see cref="PedBone"/>.
 /// </summary>
 /// <param name="target">The <see cref="PedBone"/> to point at.</param>
 /// <param name="offset">The offset from the <paramref name="target"/> to point at</param>
 public void PointAt(PedBone target, Vector3 offset = default(Vector3))
 {
     Function.Call(Hash.POINT_CAM_AT_PED_BONE, Handle, target.Owner.Handle, target, offset.X, offset.Y, offset.Z, true);
 }