_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 voidParameters
| Name | Type | Description |
|---|---|---|
| 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
