GetCalculatedPos

From GECK
Jump to: navigation, search


A function added by the SUP NVSE Plugin.

Description

Calculates position relative to position of a calling reference with specified angle and distance.

Syntax

[help]
[ObjectRefID].GetCalculatedPos fAngle:float fDistance:float xOut:float yOut:float

Example

float fHeadingAngle
float fOutX
float fOutY

set fHeadingAngle to PlayerRef.GetAngle Z
PlayerRef.GetCalculatedPos fHeadingAngle 25 fOutX fOutY; 

The function will calculate object position in front of the player with offset distance of 25 and sets coordinates to fOutX and fOutY script variables.

See Also