Skip to content

Commit 0551007

Browse files
authored
Merge pull request #1221 from NexiusTailer/master
Tweaks for `GetVehicleRotation` and `GetVehicleMatrix`
2 parents 3379361 + deb96ab commit 0551007

5 files changed

Lines changed: 28 additions & 0 deletions

File tree

frontend/docs/scripting/functions/GetVehicleMatrix.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ Gets the actual rotation matrix of the vehicle.
2626
| &Float:atY | A float variable in which to store the atY coordinate, passed by reference. |
2727
| &Float:atZ | A float variable in which to store the atZ coordinate, passed by reference. |
2828

29+
## Returns
30+
31+
**true** - The function was executed successfully.
32+
33+
**false** - The function failed to execute. This means the vehicle specified does not exist.
34+
35+
The vehicle's rotation is stored in the specified variables.
36+
2937
## Examples
3038

3139
```c

frontend/docs/scripting/functions/GetVehicleRotation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ description: Returns a vehicle's rotation as euler.
55
tags: ["vehicle"]
66
---
77

8+
<VersionWarn version='omp v1.5.8.3079' />
9+
810
## Description
911

1012
Returns a vehicle's rotation as euler.

frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleMatrix.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ tags: ["vehicle"]
2626
| &Float:atY | متغیر float برای ذخیره مختصات atY که به صورت reference پاس داده می‌شه. |
2727
| &Float:atZ | متغیر float برای ذخیره مختصات atZ که به صورت reference پاس داده می‌شه. |
2828

29+
## مقادیر برگشتی
30+
31+
**true** - تابع با موفقیت اجرا شد.
32+
33+
**false** - تابع موفق به اجرا نشد. یعنی وسیله نقلیه مشخص شده وجود نداره.
34+
35+
چرخش وسیله نقلیه در متغیرهای مشخص شده ذخیره می‌شه.
36+
2937
## مثال‌ها
3038

3139
```c

frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleMatrix.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ tags: ["车辆"]
2626
| &Float:atY | 用于存储 atY 坐标的浮点变量(通过引用传递) |
2727
| &Float:atZ | 用于存储 atZ 坐标的浮点变量(通过引用传递) |
2828

29+
## 返回值
30+
31+
**true** - 函数执行成功。
32+
33+
**false** - 函数执行失败。这意味着指定的车辆不存在。
34+
35+
车辆的旋转存储在指定的变量中。
36+
2937
## 示例代码
3038

3139
```c

frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ description: 返回车辆的欧拉角旋转。
55
tags: ["车辆"]
66
---
77

8+
<VersionWarnZH_CN version='omp v1.5.8.3079' />
9+
810
## 描述
911

1012
返回车辆的欧拉角旋转。

0 commit comments

Comments
 (0)