Ejemplo n.º 1
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)
 {
     API.AttachCamToPedBone(Handle, pedBone.Owner.Handle, pedBone, offset.X, offset.Y, offset.Z, true);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 3
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))
 {
     API.PointCamAtPedBone(Handle, target.Owner.Handle, target, offset.X, offset.Y, offset.Z, true);
 }
Ejemplo n.º 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);
 }