RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. _SET_ENTITY_ROTATION_PARALLEL_TO_LINE

_SET_ENTITY_ROTATION_PARALLEL_TO_LINE

Sets the entity's rotation so that it becomes parallel to the direction defined by the line between coords1 and coords2, without moving the entity from its current position. This native does NOT make the entity face coords1 or coords2. Instead, it keeps the entity at its current world position and adjusts its orientation so that it is aligned parallel to the direction derived from the two coordinates

ENTITYBuild 1207

Signature

lua
SetEntityRotationParallelToLine(entity, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0)
-- returns void

Parameters

NameTypeDescription
Entity—
float—
float—
float—
float—
float—
float—
int—

Usage

lua
SetEntityRotationParallelToLine(entity, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0)

Generated from the native name, hash, and parameter list. Add a real example.

Details

Hash
Source
VORPCORE/RDR3natives

Source: VORPCORE/RDR3natives

On this page

  • Signature
  • Parameters
  • Usage
  • Details