|
G1R AngelScript
Scripting reference for the Gothic 1 Remake
|
Functions | |
Functions | |
| bool | ImGuiToScreenPosition (FVector2D ImGuiPosition, FVector2D &OutScreenPosition) |
| Converts a desktop-space ImGui coordinate into the viewport render-pixel space used for deprojection. | |
| USceneComponent | PickComponentAtMousePosition (TSubclassOf< USceneComponent > ComponentClassFilter) |
| FVector | CameraWorldPosition () |
| Returns the current camera position. | |
| FTransform | CameraWorldTransform () |
| Returns the current camera transform. | |
| bool | DeprojectImGuiMousePosition (FVector &OutWorldOrigin, FVector &OutWorldDirection) |
| Deprojects the current ImGui mouse position into a world-space ray. | |
| bool | DeprojectImGuiPosition (FVector2D ImGuiPosition, FVector &OutWorldOrigin, FVector &OutWorldDirection) |
| Deprojects a desktop-space ImGui coordinate into a world-space ray. | |
| AActor | PickActorAtMousePosition (TSubclassOf< AActor > ActorClassFilter) |
| FVector | PlayerCharacterWorldPosition () |
| Returns the current player character's world position. Falls back to camera position if needed. | |
| FTransform | PlayerCharacterWorldTransform () |
| Returns the current player character's world transform. Falls back to camera position if needed. | |
| bool | ProjectWorldToImGuiPosition (FVector WorldPosition, FVector2D &OutImGuiPosition) |
| Projects a world-space position into a desktop-space ImGui coordinate, or false if off-screen. | |
| bool | ScreenToImGuiPosition (FVector2D ScreenPosition, FVector2D &OutImGuiPosition) |
| Converts a viewport render-pixel position into a desktop-space ImGui coordinate. | |
| bool | TraceMouseRay (TArray< FHitResult > &OutHits) |
| bool | TraceMouseRayLocation (FVector &OutHitLocation) |
| Traces from the mouse cursor into the world and returns the first hit location, or false if nothing was hit. | |
| FVector CameraWorldPosition | ( | ) |
Returns the current camera position.
| FTransform CameraWorldTransform | ( | ) |
Returns the current camera transform.
Deprojects the current ImGui mouse position into a world-space ray.
| bool DeprojectImGuiPosition | ( | FVector2D | ImGuiPosition, |
| FVector & | OutWorldOrigin, | ||
| FVector & | OutWorldDirection ) |
Deprojects a desktop-space ImGui coordinate into a world-space ray.
Converts a desktop-space ImGui coordinate into the viewport render-pixel space used for deprojection.
| AActor PickActorAtMousePosition | ( | TSubclassOf< AActor > | ActorClassFilter | ) |
| USceneComponent PickComponentAtMousePosition | ( | TSubclassOf< USceneComponent > | ComponentClassFilter | ) |
| FVector PlayerCharacterWorldPosition | ( | ) |
Returns the current player character's world position. Falls back to camera position if needed.
| FTransform PlayerCharacterWorldTransform | ( | ) |
Returns the current player character's world transform. Falls back to camera position if needed.
Projects a world-space position into a desktop-space ImGui coordinate, or false if off-screen.
Converts a viewport render-pixel position into a desktop-space ImGui coordinate.
| bool TraceMouseRay | ( | TArray< FHitResult > & | OutHits | ) |
| bool TraceMouseRayLocation | ( | FVector & | OutHitLocation | ) |
Traces from the mouse cursor into the world and returns the first hit location, or false if nothing was hit.