EntityGetOffsetPositionRight 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 right.

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

public Vector3 GetOffsetPositionRight(
	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 TO the right of the entity, it simply gets a position that is offset from the entity's current position, along the entity's right vector, the specified distance.

It is simply a shortcut for:

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

Reference