EntityGetOffsetPositionUp 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 top.

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

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

It is simply a shortcut for:

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

Reference