GetCalculatedPos
From GECK
A function added by the SUP NVSE Plugin.
Contents
Description
Calculates position relative to position of a calling reference with specified angle and distance.
Syntax
[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.