Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions frontend/docs/scripting/functions/GetVehicleMatrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ Gets the actual rotation matrix of the vehicle.
| &Float:atY | A float variable in which to store the atY coordinate, passed by reference. |
| &Float:atZ | A float variable in which to store the atZ coordinate, passed by reference. |

## Returns

**true** - The function was executed successfully.

**false** - The function failed to execute. This means the vehicle specified does not exist.

The vehicle's rotation is stored in the specified variables.

## Examples

```c
Expand Down
2 changes: 2 additions & 0 deletions frontend/docs/scripting/functions/GetVehicleRotation.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ description: Returns a vehicle's rotation as euler.
tags: ["vehicle"]
---

<VersionWarn version='omp v1.5.8.3079' />

## Description

Returns a vehicle's rotation as euler.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ tags: ["vehicle"]
| &Float:atY | متغیر float برای ذخیره مختصات atY که به صورت reference پاس داده می‌شه. |
| &Float:atZ | متغیر float برای ذخیره مختصات atZ که به صورت reference پاس داده می‌شه. |

## مقادیر برگشتی

**true** - تابع با موفقیت اجرا شد.

**false** - تابع موفق به اجرا نشد. یعنی وسیله نقلیه مشخص شده وجود نداره.

چرخش وسیله نقلیه در متغیرهای مشخص شده ذخیره می‌شه.

## مثال‌ها

```c
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ tags: ["车辆"]
| &Float:atY | 用于存储 atY 坐标的浮点变量(通过引用传递) |
| &Float:atZ | 用于存储 atZ 坐标的浮点变量(通过引用传递) |

## 返回值

**true** - 函数执行成功。

**false** - 函数执行失败。这意味着指定的车辆不存在。

车辆的旋转存储在指定的变量中。

## 示例代码

```c
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ description: 返回车辆的欧拉角旋转。
tags: ["车辆"]
---

<VersionWarnZH_CN version='omp v1.5.8.3079' />

## 描述

返回车辆的欧拉角旋转。
Expand Down
Loading