GetEditorPosition
From GECK
A function added by the JIP NVSE Plugin.
Contents
Description
Returns the cell, position and rotation of the calling reference, where it was originally placed in the GECK editor. The function outputs the X/Y/Z position and rotation values into the 6 Script Variable arguments, whereas the cell is the return value of the function.
- If the calling reference was not placed in the editor, the function returns 0.
Syntax
(originCell:form) reference.GetEditorPosition outPosX:ScriptVar outPosY:ScriptVar outPosZ:ScriptVar outRotX:ScriptVar outRotY:ScriptVar outRotZ:ScriptVar
Example
set rOriginCell to someRef.GetEditorPosition fPosX fPosY fPosZ fRotX fRotY fRotZ