EntityGetOffsetPositionFront Method

RAGE Plugin Hook Documentation

[This is preliminary documentation and is subject to change.]

Gets a position that is the specified offset towards the entity's front.

Namespace:  Rage
Assembly:  RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax

public Vector3 GetOffsetPositionFront(
	float offset
)

Parameters

offset
Type: SystemSingle
The offset in meters to offset the position by.

Return Value

Type: Vector3
An instance of Vector3 representing the offset position.
Remarks

This method does not get a position that is the specified meters IN front of the entity, it simply gets a position that is offset from the entity's current position, along the entity's forward vector, the specified distance.

It is simply a shortcut for:

C#
Vector3 position = entity.GetOffsetPosition(new Vector3(0f, offset, 0f);
See Also

Reference