public void AttachTo(PedBone pedBone, Vector3 offset) { InputArgument[] arguments = new InputArgument[] { base.Handle, pedBone.Owner.Handle, (InputArgument)pedBone, offset.X, offset.Y, offset.Z, true }; Function.Call(Hash.ATTACH_CAM_TO_PED_BONE, arguments); }
/// <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); }
public void PointAt(PedBone target, Vector3 offset = new Vector3()) { InputArgument[] arguments = new InputArgument[] { base.Handle, target.Owner.Handle, (InputArgument)target, offset.X, offset.Y, offset.Z, true }; Function.Call(Hash.POINT_CAM_AT_PED_BONE, arguments); }
/// <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); }