Interfaces
IVector3Service
Responsible for Vector3 related tasks.
Methods
GetRandomLocationAsync
Gets a random location offset from the specified entity with heading.
Parameters
| Name | Type | Description |
|---|---|---|
| entity | Entity | The entity. |
| offsetMin | int | The minimum offset. |
| offsetMax | int | The maximum offset. |
Returns
| Name | Type |
|---|---|
| Task<Vector3> | A serialized json with location and heading. |
GetPointOnRoadSideAsync
Gets a random location on roadside with heading.
Parameters
| Name | Type | Description |
|---|---|---|
| entity | Entity | The entity. |
| offsetMin | int | The minimum offset. |
| offsetMax | int | The maximum offset. |
Returns
| Name | Type |
|---|---|
| Task<Vector3WithHeading> | A serialized json with location and heading. |
GetPlayerForwardVectorAsync
Gets the forward vector of the specified player.
Parameters
| Name | Type | Description |
|---|---|---|
| player | Player | The player whose forward vector is to be calculated. |
Returns
| Name | Type |
|---|---|
| Task<Vector3> | A Vector3 representing the forward direction of the player. |