GetCalculatedPosAlt

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]
GetCalculatedPosAlt fAngle:float fDistance:float xOut:float yOut:float xIn:float yIn:float

Example

float fOutX
float fOutY

GetCalculatedPosAlt 0 25 fOutX fOutY fxIn fyIn; 

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

See Also